Sha256: d9a31341c203e44bc00dfd24bbe6084d90a479c7a66d357ed808ea25a6c2727f

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

##
# NPR::Entity::Provider
#
module NPR
  module Entity
    class Provider < Base
      attr_accessor :content, :url

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

      def initialize(json)
        @content = json["$text"]
        @url     = json["url"]
      end

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

      def to_s
        @content.to_s
      end
    end # Provider
  end # Entity
end # NPR

Version data entries

5 entries across 5 versions & 1 rubygems

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