Class: Twfy::MP
Instance Attribute Summary
Attributes inherited from DataElement
#client
Instance Method Summary
collapse
Methods inherited from DataElement
convert, #convert, convert_to_date, #initialize
Instance Method Details
71
72
73
74
|
# File 'lib/data_element.rb', line 71
def (params={})
@comments ||= {}
@comments[params] ||= @client.(params.merge(:pid=>@person_id))
end
|
#debates(params = {}) ⇒ Object
66
67
68
69
|
# File 'lib/data_element.rb', line 66
def debates(params={})
@debates ||= {}
@debates[params] ||= @client.debates(params.merge(:person=>@person_id, :type=>'commons'))
end
|
#in_office? ⇒ Boolean
58
59
60
|
# File 'lib/data_element.rb', line 58
def in_office?
@left_reason == 'still_in_office'
end
|
#info ⇒ Object
62
63
64
|
# File 'lib/data_element.rb', line 62
def info
@info ||= @client.mp_info(:id => @person_id)
end
|