class JustInform::InformationCollectionRequest

Attributes

raw_data[RW]

Public Class Methods

new(data) click to toggle source
# File lib/just_inform/information_collection_request.rb, line 9
def initialize(data)
  @raw_data = data
end

Public Instance Methods

abstract() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 13
def abstract
  @raw_data.at_css('Abstract').content
end
agency_code() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 17
def agency_code
  @raw_data.at_css('AgencyCode').content
end
burden()
Alias for: total_burden_hours
burden_hours()
Alias for: total_burden_hours
cost()
Alias for: total_cost
icr_reference_number() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 21
def icr_reference_number
  @raw_data.at_css('ICRReferenceNumber').content
end
inspect() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 5
def inspect
  title
end
omb_control_number() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 25
def omb_control_number
  @raw_data.at_css('OMBControlNumber').content
end
responses()
Alias for: total_responses
title() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 29
def title
  @raw_data.at_css('Title').content
end
total_burden_hours() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 33
def total_burden_hours
  @raw_data.at_css('Burden BurdenHour TotalQuantity').content.to_i
end
Also aliased as: burden_hours, burden
total_cost() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 39
def total_cost
  @raw_data.at_css('Burden BurdenCost TotalAmount').content.to_i
end
Also aliased as: cost
total_responses() click to toggle source
# File lib/just_inform/information_collection_request.rb, line 44
def total_responses
  @raw_data.at_css('Burden BurdenResponse TotalQuantity').content.to_i
end
Also aliased as: responses