Sha256: ec6bdc9b2c69cfa6c30b630bee9637d395878a7bf1aed378c38efa57e198ce84

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

##
# NPR::Entity::ExternalAsset
#
# Audio permissions
#
module NPR
  module Entity
    class ExternalAsset < Base
      attr_accessor :id, :type

      shallow_attribute \
        "url",
        "oEmbed",
        "externalId",
        "credit",
        "parameters",
        "caption"

      def initialize(json)
        @id   = json["id"].to_i
        @type = json["type"]

        extract_shallow_attributes(json)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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