module Twfy::Commands

Public Instance Methods

comments(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 68
def comments(params = {})
  service :getComments, params
end
committee(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 52
def committee(params = {})
  service :getCommittee, params
end
constituencies(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 14
def constituencies(params = {})
  service :getConstituencies, params, Constituency
end
constituency(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 10
def constituency(params = {})
  service :getConstituency, params, Constituency
end
convert_url(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 4
def convert_url(params = {})
  service :convertURL, params do |value|
    URI.parse(value['url'])
  end
end
debates(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 56
def debates(params = {})
  service :getDebates, params
end
geometry(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 48
def geometry(params = {})
  service :getGeometry, params, Geometry
end
lord(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 30
def lord(params = {})
  service :getLord, params
end
lords(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 34
def lords(params = {})
  service :getLords, params
end
mlas(params = {}) click to toggle source

Members of Legislative Assembly

# File lib/twfy/commands.rb, line 39
def mlas(params = {})
  service :getMLAs, params
end
mp(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 18
def mp(params = {})
  service :getMP, params, MP
end
mp_info(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 22
def mp_info(params = {})
  service :getMPInfo, params
end
mps(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 26
def mps(params = {})
  service :getMPs, params, MP
end
msps(params = {}) click to toggle source

Member of Scottish parliament

# File lib/twfy/commands.rb, line 44
def msps(params = {})
  service :getMSPs, params
end
wms(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 64
def wms(params = {})
  service :getWMS, params
end
wrans(params = {}) click to toggle source
# File lib/twfy/commands.rb, line 60
def wrans(params = {})
  service :getWrans, params
end