Class: CivicInformation::RepresentativesResource::Channel
- Inherits:
-
Object
- Object
- CivicInformation::RepresentativesResource::Channel
- Defined in:
- lib/civic_information/models/representatives_resource/channel.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(channel_json) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(channel_json) ⇒ Channel
Returns a new instance of Channel.
5 6 7 8 |
# File 'lib/civic_information/models/representatives_resource/channel.rb', line 5 def initialize(channel_json) @id = channel_json["id"] @type = channel_json["type"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/civic_information/models/representatives_resource/channel.rb', line 3 def id @id end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/civic_information/models/representatives_resource/channel.rb', line 3 def type @type end |