class Twfy::MP
Public Instance Methods
comments(params={})
click to toggle source
# File lib/twfy/mp.rb, line 32 def comments(params={}) @comments ||= {} @comments[params] ||= @client.comments(params.merge(pid: @person_id)) end
debates(params={})
click to toggle source
# File lib/twfy/mp.rb, line 27 def debates(params={}) @debates ||= {} @debates[params] ||= @client.debates(params.merge(person: @person_id, type: 'commons')) end
in_office?()
click to toggle source
# File lib/twfy/mp.rb, line 19 def in_office? @left_reason == 'still_in_office' end
info()
click to toggle source
# File lib/twfy/mp.rb, line 23 def info @info ||= @client.mp_info(id: @person_id) end