Class: GovKit::OpenCongress::RollCallComparison
- Inherits:
-
OpenCongressObject
- Object
- OpenCongressObject
- GovKit::OpenCongress::RollCallComparison
- Defined in:
- lib/gov_kit/open_congress/roll_call_comparison.rb
Instance Attribute Summary collapse
-
#person1 ⇒ Object
Returns the value of attribute person1.
-
#person2 ⇒ Object
Returns the value of attribute person2.
-
#roll_call ⇒ Object
Returns the value of attribute roll_call.
Instance Method Summary collapse
-
#initialize(params) ⇒ RollCallComparison
constructor
A new instance of RollCallComparison.
- #set_people ⇒ Object
- #set_roll_call ⇒ Object
Methods inherited from OpenCongressObject
construct_url, hash2get, make_call, parse_supporting_results
Constructor Details
#initialize(params) ⇒ RollCallComparison
Returns a new instance of RollCallComparison.
7 8 9 10 11 12 13 |
# File 'lib/gov_kit/open_congress/roll_call_comparison.rb', line 7 def initialize(params) super RollCallComparison, params set_people set_roll_call end |
Instance Attribute Details
#person1 ⇒ Object
Returns the value of attribute person1.
5 6 7 |
# File 'lib/gov_kit/open_congress/roll_call_comparison.rb', line 5 def person1 @person1 end |
#person2 ⇒ Object
Returns the value of attribute person2.
5 6 7 |
# File 'lib/gov_kit/open_congress/roll_call_comparison.rb', line 5 def person2 @person2 end |
#roll_call ⇒ Object
Returns the value of attribute roll_call.
5 6 7 |
# File 'lib/gov_kit/open_congress/roll_call_comparison.rb', line 5 def roll_call @roll_call end |
Instance Method Details
#set_people ⇒ Object
15 16 17 18 |
# File 'lib/gov_kit/open_congress/roll_call_comparison.rb', line 15 def set_people self.person1 = self.person1["stong"] self.person2 = self.person2["stong"] end |