Class: FederalRepLookup::CongressPerson

Inherits:
Struct
  • Object
show all
Defined in:
lib/federal_rep_lookup/congress_person.rb

Instance Attribute Summary collapse

Instance Attribute Details

#districtObject

Returns the value of attribute district



2
3
4
# File 'lib/federal_rep_lookup/congress_person.rb', line 2

def district
  @district
end

Returns the value of attribute link



2
3
4
# File 'lib/federal_rep_lookup/congress_person.rb', line 2

def link
  @link
end

#nameObject

Returns the value of attribute name



2
3
4
# File 'lib/federal_rep_lookup/congress_person.rb', line 2

def name
  @name
end

#officeObject

Returns the value of attribute office



2
3
4
# File 'lib/federal_rep_lookup/congress_person.rb', line 2

def office
  @office
end

#partyObject

Returns the value of attribute party



2
3
4
# File 'lib/federal_rep_lookup/congress_person.rb', line 2

def party
  @party
end

#phoneObject

Returns the value of attribute phone



2
3
4
# File 'lib/federal_rep_lookup/congress_person.rb', line 2

def phone
  @phone
end

#stateObject

Returns the value of attribute state



2
3
4
# File 'lib/federal_rep_lookup/congress_person.rb', line 2

def state
  @state
end