Class: PYR::Rep
- Inherits:
-
ResponseObject
- Object
- LazyRecord::Base
- ResponseObject
- PYR::Rep
- Defined in:
- lib/pyr/response_objects/rep.rb
Overview
The Rep is the response object that carries the data for a single elected representative.
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#bioguide_id ⇒ Object
Returns the value of attribute bioguide_id.
-
#contact_form ⇒ Object
Returns the value of attribute contact_form.
-
#district ⇒ Object
Returns the value of attribute district.
-
#facebook ⇒ Object
Returns the value of attribute facebook.
-
#facebook_id ⇒ Object
Returns the value of attribute facebook_id.
-
#first ⇒ Object
Returns the value of attribute first.
-
#googleplus ⇒ Object
Returns the value of attribute googleplus.
-
#instagram ⇒ Object
Returns the value of attribute instagram.
-
#instagram_id ⇒ Object
Returns the value of attribute instagram_id.
-
#last ⇒ Object
Returns the value of attribute last.
-
#middle ⇒ Object
Returns the value of attribute middle.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#official_full ⇒ Object
Returns the value of attribute official_full.
-
#party ⇒ Object
Returns the value of attribute party.
-
#photo ⇒ Object
Returns the value of attribute photo.
-
#role ⇒ Object
Returns the value of attribute role.
-
#self ⇒ Object
Returns the value of attribute self.
-
#senate_class ⇒ Object
Returns the value of attribute senate_class.
-
#state ⇒ Object
Returns the value of attribute state.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#twitter ⇒ Object
Returns the value of attribute twitter.
-
#twitter_id ⇒ Object
Returns the value of attribute twitter_id.
-
#url ⇒ Object
Returns the value of attribute url.
-
#youtube ⇒ Object
Returns the value of attribute youtube.
-
#youtube_id ⇒ Object
Returns the value of attribute youtube_id.
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.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def active @active end |
#bioguide_id ⇒ Object
Returns the value of attribute bioguide_id.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def bioguide_id @bioguide_id end |
#contact_form ⇒ Object
Returns the value of attribute contact_form.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def contact_form @contact_form end |
#district ⇒ Object
Returns the value of attribute district.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def district @district end |
#facebook ⇒ Object
Returns the value of attribute facebook.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def facebook @facebook end |
#facebook_id ⇒ Object
Returns the value of attribute facebook_id.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def facebook_id @facebook_id end |
#first ⇒ Object
Returns the value of attribute first.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def first @first end |
#googleplus ⇒ Object
Returns the value of attribute googleplus.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def googleplus @googleplus end |
#instagram ⇒ Object
Returns the value of attribute instagram.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def instagram @instagram end |
#instagram_id ⇒ Object
Returns the value of attribute instagram_id.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def instagram_id @instagram_id end |
#last ⇒ Object
Returns the value of attribute last.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def last @last end |
#middle ⇒ Object
Returns the value of attribute middle.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def middle @middle end |
#nickname ⇒ Object
Returns the value of attribute nickname.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def nickname @nickname end |
#official_full ⇒ Object
Returns the value of attribute official_full.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def official_full @official_full end |
#party ⇒ Object
Returns the value of attribute party.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def party @party end |
#photo ⇒ Object
Returns the value of attribute photo.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def photo @photo end |
#role ⇒ Object
Returns the value of attribute role.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def role @role end |
#self ⇒ Object
Returns the value of attribute self.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def self @self end |
#senate_class ⇒ Object
Returns the value of attribute senate_class.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def senate_class @senate_class end |
#state ⇒ Object
Returns the value of attribute state.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def state @state end |
#suffix ⇒ Object
Returns the value of attribute suffix.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def suffix @suffix end |
#twitter ⇒ Object
Returns the value of attribute twitter.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def twitter @twitter end |
#twitter_id ⇒ Object
Returns the value of attribute twitter_id.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def twitter_id @twitter_id end |
#url ⇒ Object
Returns the value of attribute url.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def url @url end |
#youtube ⇒ Object
Returns the value of attribute youtube.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def youtube @youtube end |
#youtube_id ⇒ Object
Returns the value of attribute youtube_id.
15 16 17 |
# File 'lib/pyr/response_objects/rep.rb', line 15 def youtube_id @youtube_id end |