Class: PYR::OfficeLocation
- Inherits:
-
ResponseObject
- Object
- LazyRecord::Base
- ResponseObject
- PYR::OfficeLocation
- Defined in:
- lib/pyr/response_objects/office_location.rb
Overview
The OfficeLocation is the response object that carries the data for a single office location, which in turn is associated to a rep in a ‘:rep has_many :office_locations` relationship.
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#address ⇒ Object
Returns the value of attribute address.
-
#bioguide_id ⇒ Object
Returns the value of attribute bioguide_id.
-
#building ⇒ Object
Returns the value of attribute building.
-
#city ⇒ Object
Returns the value of attribute city.
-
#distance ⇒ Object
Returns the value of attribute distance.
-
#downloads ⇒ Object
Returns the value of attribute downloads.
-
#fax ⇒ Object
Returns the value of attribute fax.
-
#hours ⇒ Object
Returns the value of attribute hours.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#office_id ⇒ Object
Returns the value of attribute office_id.
-
#office_type ⇒ Object
Returns the value of attribute office_type.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#qr_code_link ⇒ Object
Returns the value of attribute qr_code_link.
-
#rep ⇒ Object
Returns the value of attribute rep.
-
#self ⇒ Object
Returns the value of attribute self.
-
#state ⇒ Object
Returns the value of attribute state.
-
#suite ⇒ Object
Returns the value of attribute suite.
-
#v_card_link ⇒ Object
Returns the value of attribute v_card_link.
-
#zip ⇒ Object
Returns the value of attribute zip.
Method Summary
Methods inherited from ResponseObject
#call, #controller, #initialize
Constructor Details
This class inherits a constructor from PYR::ResponseObject
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def active @active end |
#address ⇒ Object
Returns the value of attribute address.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def address @address end |
#bioguide_id ⇒ Object
Returns the value of attribute bioguide_id.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def bioguide_id @bioguide_id end |
#building ⇒ Object
Returns the value of attribute building.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def building @building end |
#city ⇒ Object
Returns the value of attribute city.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def city @city end |
#distance ⇒ Object
Returns the value of attribute distance.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def distance @distance end |
#downloads ⇒ Object
Returns the value of attribute downloads.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def downloads @downloads end |
#fax ⇒ Object
Returns the value of attribute fax.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def fax @fax end |
#hours ⇒ Object
Returns the value of attribute hours.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def hours @hours end |
#latitude ⇒ Object
Returns the value of attribute latitude.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def longitude @longitude end |
#office_id ⇒ Object
Returns the value of attribute office_id.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def office_id @office_id end |
#office_type ⇒ Object
Returns the value of attribute office_type.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def office_type @office_type end |
#phone ⇒ Object
Returns the value of attribute phone.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def phone @phone end |
#qr_code_link ⇒ Object
Returns the value of attribute qr_code_link.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def qr_code_link @qr_code_link end |
#rep ⇒ Object
Returns the value of attribute rep.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def rep @rep end |
#self ⇒ Object
Returns the value of attribute self.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def self @self end |
#state ⇒ Object
Returns the value of attribute state.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def state @state end |
#suite ⇒ Object
Returns the value of attribute suite.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def suite @suite end |
#v_card_link ⇒ Object
Returns the value of attribute v_card_link.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def v_card_link @v_card_link end |
#zip ⇒ Object
Returns the value of attribute zip.
12 13 14 |
# File 'lib/pyr/response_objects/office_location.rb', line 12 def zip @zip end |