Sha256: 8a0baa1bc8bd1e34cff422da007e0b711d532eef7b2296eeea7982a92c9f235f

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

##
# NPR::Entity::PullQuote
#
module NPR
  module Entity
    class PullQuote < Base
      attr_accessor :id
      shallow_attribute "text", "person", "date"

      def initialize(json)
        extract_shallow_attributes(json)
        @id = json["id"].to_i
      end
    end # PullQuote
  end # Entity
end # NPR

Version data entries

5 entries across 5 versions & 1 rubygems

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