Class: SibuApidae::ApidaeResult
- Inherits:
-
Object
- Object
- SibuApidae::ApidaeResult
- Defined in:
- lib/sibu_apidae.rb
Instance Attribute Summary collapse
-
#obj_id ⇒ Object
Returns the value of attribute obj_id.
Instance Method Summary collapse
-
#initialize(init_hash) ⇒ ApidaeResult
constructor
A new instance of ApidaeResult.
- #obj ⇒ Object
Constructor Details
#initialize(init_hash) ⇒ ApidaeResult
Returns a new instance of ApidaeResult.
23 24 25 |
# File 'lib/sibu_apidae.rb', line 23 def initialize(init_hash) @obj_id = init_hash["obj_id"] end |
Instance Attribute Details
#obj_id ⇒ Object
Returns the value of attribute obj_id.
21 22 23 |
# File 'lib/sibu_apidae.rb', line 21 def obj_id @obj_id end |
Instance Method Details
#obj ⇒ Object
27 28 29 |
# File 'lib/sibu_apidae.rb', line 27 def obj Apidae::Obj.find_by_apidae_id(obj_id) || Apidae::Obj.first end |