Class: JustInform::InformationCollection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_hoursObject

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

#costObject

Returns the value of attribute cost.



3
4
5
# File 'lib/just_inform/information_collection.rb', line 3

def cost
  @cost
end

#file_nameObject

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_nameObject

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_idObject

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_dataObject

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

#responsesObject

Returns the value of attribute responses.



3
4
5
# File 'lib/just_inform/information_collection.rb', line 3

def responses
  @responses
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/just_inform/information_collection.rb', line 3

def title
  @title
end