Class: NPR::Entity::Stream

Inherits:
Base
  • Object
show all
Defined in:
lib/npr/entity/stream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concern::ShallowAttributes

included

Methods included from Concern::Relation

included

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

#activeObject 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