Class: CivicInformation::RepresentativesResource::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/civic_information/models/representatives_resource/channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/civic_information/models/representatives_resource/channel.rb', line 3

def id
  @id
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/civic_information/models/representatives_resource/channel.rb', line 3

def type
  @type
end