Module: Twfy::Commands

Included in:
Client
Defined in:
lib/twfy/commands.rb

Instance Method Summary collapse

Instance Method Details

#comments(params = {}) ⇒ Object



68
69
70
# File 'lib/twfy/commands.rb', line 68

def comments(params = {})
  service :getComments, params
end

#committee(params = {}) ⇒ Object



52
53
54
# File 'lib/twfy/commands.rb', line 52

def committee(params = {})
  service :getCommittee, params
end

#constituencies(params = {}) ⇒ Object



14
15
16
# File 'lib/twfy/commands.rb', line 14

def constituencies(params = {})
  service :getConstituencies, params, Constituency
end

#constituency(params = {}) ⇒ Object



10
11
12
# File 'lib/twfy/commands.rb', line 10

def constituency(params = {})
  service :getConstituency, params, Constituency
end

#convert_url(params = {}) ⇒ Object



4
5
6
7
8
# File 'lib/twfy/commands.rb', line 4

def convert_url(params = {})
  service :convertURL, params do |value|
    URI.parse(value['url'])
  end
end

#debates(params = {}) ⇒ Object



56
57
58
# File 'lib/twfy/commands.rb', line 56

def debates(params = {})
  service :getDebates, params
end

#geometry(params = {}) ⇒ Object



48
49
50
# File 'lib/twfy/commands.rb', line 48

def geometry(params = {})
  service :getGeometry, params, Geometry
end

#lord(params = {}) ⇒ Object



30
31
32
# File 'lib/twfy/commands.rb', line 30

def lord(params = {})
  service :getLord, params
end

#lords(params = {}) ⇒ Object



34
35
36
# File 'lib/twfy/commands.rb', line 34

def lords(params = {})
  service :getLords, params
end

#mlas(params = {}) ⇒ Object

Members of Legislative Assembly



39
40
41
# File 'lib/twfy/commands.rb', line 39

def mlas(params = {})
  service :getMLAs, params
end

#mp(params = {}) ⇒ Object



18
19
20
# File 'lib/twfy/commands.rb', line 18

def mp(params = {})
  service :getMP, params, MP
end

#mp_info(params = {}) ⇒ Object



22
23
24
# File 'lib/twfy/commands.rb', line 22

def mp_info(params = {})
  service :getMPInfo, params
end

#mps(params = {}) ⇒ Object



26
27
28
# File 'lib/twfy/commands.rb', line 26

def mps(params = {})
  service :getMPs, params, MP
end

#msps(params = {}) ⇒ Object

Member of Scottish parliament



44
45
46
# File 'lib/twfy/commands.rb', line 44

def msps(params = {})
  service :getMSPs, params
end

#wms(params = {}) ⇒ Object



64
65
66
# File 'lib/twfy/commands.rb', line 64

def wms(params = {})
  service :getWMS, params
end

#wrans(params = {}) ⇒ Object



60
61
62
# File 'lib/twfy/commands.rb', line 60

def wrans(params = {})
  service :getWrans, params
end