Class: Spear::Structure::Application::State

Inherits:
Base
  • Object
show all
Includes:
EmbededClass
Defined in:
lib/spear/structure/application/state.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#error_message, #response, #root, #status

Instance Method Summary collapse

Methods included from EmbededClass

#generate_apps, #generate_questions

Methods inherited from Base

#success?

Constructor Details

#initialize(response) ⇒ State

Returns a new instance of State.



9
10
11
12
13
# File 'lib/spear/structure/application/state.rb', line 9

def initialize(response)
  super(response)

  @applications = generate_apps(@root['ApplicationList']['Application']) rescue nil
end

Instance Attribute Details

#applicationsObject

Returns the value of attribute applications.



7
8
9
# File 'lib/spear/structure/application/state.rb', line 7

def applications
  @applications
end