Sha256: d790636ba0c2cc10ad910d164eb71786b003f72cf8b0be50b4ddc63a575d98b4

Contents?: true

Size: 290 Bytes

Versions: 4

Compression:

Stored size: 290 Bytes

Contents

##
# NPR::Entity::Stream
module NPR
  module Entity
    class Stream < Base
      attr_accessor :active
      alias_method :active?, :active

      #-------------------

      def initialize(json)
        @active = json["active"] == "true"
      end
    end # Name
  end # Entity
end # NPR

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
npr-3.0.0 lib/npr/entity/stream.rb
npr-2.0.2 lib/npr/entity/stream.rb
npr-2.0.1 lib/npr/entity/stream.rb
npr-2.0.0 lib/npr/entity/stream.rb