Class: NPR::Entity::Stream
Instance Attribute Summary collapse
-
#active ⇒ Object
(also: #active?)
Returns the value of attribute active.
Instance Method Summary collapse
-
#initialize(json) ⇒ Stream
constructor
——————-.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ Stream
11 12 13 |
# File 'lib/npr/entity/stream.rb', line 11 def initialize(json) @active = json["active"] == "true" end |
Instance Attribute Details
#active ⇒ Object Also known as: active?
Returns the value of attribute active.
6 7 8 |
# File 'lib/npr/entity/stream.rb', line 6 def active @active end |