Class: PYR::OfficeLocation

Inherits:
ResponseObject show all
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

Method Summary

Methods inherited from ResponseObject

#call, #controller, #initialize

Constructor Details

This class inherits a constructor from PYR::ResponseObject

Instance Attribute Details

#activeObject

Returns the value of attribute active.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def active
  @active
end

#addressObject

Returns the value of attribute address.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def address
  @address
end

#bioguide_idObject

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

#buildingObject

Returns the value of attribute building.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def building
  @building
end

#cityObject

Returns the value of attribute city.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def city
  @city
end

#distanceObject

Returns the value of attribute distance.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def distance
  @distance
end

#downloadsObject

Returns the value of attribute downloads.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def downloads
  @downloads
end

#faxObject

Returns the value of attribute fax.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def fax
  @fax
end

#hoursObject

Returns the value of attribute hours.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def hours
  @hours
end

#latitudeObject

Returns the value of attribute latitude.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def longitude
  @longitude
end

#office_idObject

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_typeObject

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

#phoneObject

Returns the value of attribute phone.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def phone
  @phone
end

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

#repObject

Returns the value of attribute rep.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def rep
  @rep
end

#selfObject

Returns the value of attribute self.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def self
  @self
end

#stateObject

Returns the value of attribute state.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def state
  @state
end

#suiteObject

Returns the value of attribute suite.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def suite
  @suite
end

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

#zipObject

Returns the value of attribute zip.



12
13
14
# File 'lib/pyr/response_objects/office_location.rb', line 12

def zip
  @zip
end