Class: Beefdump::World::Object
- Defined in:
- lib/beefdump/world/object.rb
Instance Attribute Summary collapse
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(object_data) ⇒ Object
constructor
A new instance of Object.
Constructor Details
#initialize(object_data) ⇒ Object
Returns a new instance of Object.
8 9 10 11 12 |
# File 'lib/beefdump/world/object.rb', line 8 def initialize(object_data) load_object_attributes!(object_data) load_properties!(object_data["property"]) end |
Instance Attribute Details
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
6 7 8 |
# File 'lib/beefdump/world/object.rb', line 6 def properties @properties end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/beefdump/world/object.rb', line 6 def type @type end |