Class: Ayadn::ChannelCountsObject
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#subscribers ⇒ Object
readonly
Returns the value of attribute subscribers.
Instance Method Summary collapse
-
#initialize(hash) ⇒ ChannelCountsObject
constructor
A new instance of ChannelCountsObject.
Constructor Details
#initialize(hash) ⇒ ChannelCountsObject
Returns a new instance of ChannelCountsObject.
35 36 37 38 39 |
# File 'lib/ayadn/channel_object.rb', line 35 def initialize hash @input = hash = @input["messages"] @subscribers = @input["subscribers"] end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
33 34 35 |
# File 'lib/ayadn/channel_object.rb', line 33 def input @input end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
33 34 35 |
# File 'lib/ayadn/channel_object.rb', line 33 def end |
#subscribers ⇒ Object (readonly)
Returns the value of attribute subscribers.
33 34 35 |
# File 'lib/ayadn/channel_object.rb', line 33 def subscribers @subscribers end |