Class: Twfy::Constituency

Inherits:
DataElement show all
Defined in:
lib/twfy/constituency.rb

Instance Attribute Summary

Attributes inherited from DataElement

#client

Instance Method Summary collapse

Methods inherited from DataElement

convert, #convert, convert_to_date, #initialize, #update_attributes, #with

Constructor Details

This class inherits a constructor from Twfy::DataElement

Instance Method Details

#geometryObject



5
6
7
# File 'lib/twfy/constituency.rb', line 5

def geometry
  @geometry ||= @client.geometry(name: @name).with(constituency: self)
end

#mpObject



9
10
11
# File 'lib/twfy/constituency.rb', line 9

def mp
  @mp ||= @client.mp(constituency: @name).with(constituency: self)
end