Class: JObject::JObject
- Inherits:
-
Object
- Object
- JObject::JObject
- Defined in:
- lib/jObject/jObject.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ JObject
constructor
A new instance of JObject.
Constructor Details
#initialize(data) ⇒ JObject
Returns a new instance of JObject.
7 8 9 10 |
# File 'lib/jObject/jObject.rb', line 7 def initialize(data) @data = data set_attributes(objectify_hash(data)) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/jObject/jObject.rb', line 5 def data @data end |