struct DynFork::Globals::Types::OutputData
- DynFork::Globals::Types::OutputData
- Struct
- Value
- Object
Overview
Output data type for the Model.check()
method.
Included Modules
- BSON::Serializable
- JSON::Serializable
Defined in:
dynfork/globals/types.crConstructors
- .new(data : Hash(String, DynFork::Globals::ResultMapType), valid : Bool, update : Bool)
- .new(pull : JSON::PullParser)
-
.new(bson : BSON)
Allocate an instance and copies data from a BSON struct.
Class Method Summary
-
.from_bson(bson : BSON)
NOTE See
self.new
.
Instance Method Summary
- #data : Hash(String, DynFork::Globals::ResultMapType)
-
#to_bson(bson = BSON.new)
Converts to a BSON representation.
- #update? : Bool
- #valid=(valid : Bool)
- #valid? : Bool
Constructor Detail
def self.new(data : Hash(String, DynFork::Globals::ResultMapType), valid : Bool, update : Bool)
#
def self.new(bson : BSON)
#
Allocate an instance and copies data from a BSON struct.
class User
include BSON::Serializable
property name : String
end
data = BSON.new
data["name"] = "John"
User.new(data)
Class Method Detail
Instance Method Detail
def to_bson(bson = BSON.new)
#
Converts to a BSON representation.
user = User.new name: "John"
bson = user.to_bson