Class: AxiomusApi::StatusListResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/axiomus_api/response/status_list_response.rb

Defined Under Namespace

Classes: Okey

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ StatusListResponse

Returns a new instance of StatusListResponse.



26
27
28
29
30
31
# File 'lib/axiomus_api/response/status_list_response.rb', line 26

def initialize(xml)
  doc = Nokogiri::XML(xml)
  @okeys = doc.xpath('/response/okeylist/okey').map do |node|
    Okey.new(node)
  end
end

Instance Attribute Details

#okeysObject

Returns the value of attribute okeys.



24
25
26
# File 'lib/axiomus_api/response/status_list_response.rb', line 24

def okeys
  @okeys
end