Class: JustInform::InformationCollection
- Inherits:
-
Object
- Object
- JustInform::InformationCollection
- Defined in:
- lib/just_inform/information_collection.rb
Instance Attribute Summary collapse
-
#burden_hours ⇒ Object
Returns the value of attribute burden_hours.
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#form_name ⇒ Object
Returns the value of attribute form_name.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#responses ⇒ Object
Returns the value of attribute responses.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(data) ⇒ InformationCollection
constructor
A new instance of InformationCollection.
Constructor Details
#initialize(data) ⇒ InformationCollection
Returns a new instance of InformationCollection.
5 6 7 8 |
# File 'lib/just_inform/information_collection.rb', line 5 def initialize(data) parent_id = data.at_css('ICRReferenceNumber') @raw_data, @parent_id = data, parent_id end |
Instance Attribute Details
#burden_hours ⇒ Object
Returns the value of attribute burden_hours.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def burden_hours @burden_hours end |
#cost ⇒ Object
Returns the value of attribute cost.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def cost @cost end |
#file_name ⇒ Object
Returns the value of attribute file_name.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def file_name @file_name end |
#form_name ⇒ Object
Returns the value of attribute form_name.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def form_name @form_name end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def parent_id @parent_id end |
#raw_data ⇒ Object
Returns the value of attribute raw_data.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def raw_data @raw_data end |
#responses ⇒ Object
Returns the value of attribute responses.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def responses @responses end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/just_inform/information_collection.rb', line 3 def title @title end |