Class: Spear::Structure::Application::State
- Includes:
- EmbededClass
- Defined in:
- lib/spear/structure/application/state.rb
Instance Attribute Summary collapse
-
#applications ⇒ Object
Returns the value of attribute applications.
Attributes inherited from Base
#error_message, #response, #root, #status
Instance Method Summary collapse
-
#initialize(response) ⇒ State
constructor
A new instance of State.
Methods included from EmbededClass
#generate_apps, #generate_questions
Methods inherited from Base
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
#applications ⇒ Object
Returns the value of attribute applications.
7 8 9 |
# File 'lib/spear/structure/application/state.rb', line 7 def applications @applications end |