class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
{_id => String, name => String, age => Int32, weapons => String | Array(String), enemies => String | JSON::Any} of Nil => Nil
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
{name: _id, type: String}
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
{} of Nil => Nil
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
keep a hash of the attributes to be used for mapping
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
make accessible to outside classes
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
Create the properties
Create the primary key
Create the properties
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
keep a hash of the attributes to be used for mapping
Destroy will remove this from the database.
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
keep a hash of the params that will be passed to the adapter.
The save method will check to see if the primary exists yet.
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
ArangoModel::Document
ArangoModel::Document
ArangoModel::Collection
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
keep a hash of the attributes to be used for mapping
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
keep a hash of the attributes to be used for mapping
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
The save method will check to see if the primary exists yet. If it does it will call the update method, otherwise it will call the create method. This will update the timestamps apropriately.
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0
class Fighter < ArangoModel::Document attribute _id : String attribute name : String attribute age : Int32 attribute weapons : String | Array(String) attribute deleted_at : Time attribute dead : Bool timestamps end
p Fighter.new exit 0