Class: SibuApidae::ApidaeResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sibu_apidae.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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

#objObject



27
28
29
# File 'lib/sibu_apidae.rb', line 27

def obj
  Apidae::Obj.find_by_apidae_id(obj_id) || Apidae::Obj.first
end