Sha256: b5db6fd2831e6786e30ad46a6b283484a4aec6a222715e5467b2e368e3c43b41

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 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

4 entries across 4 versions & 1 rubygems

Version Path
npr-1.1.0 lib/npr/entity/pull_quote.rb
npr-0.1.2 lib/npr/entity/pull_quote.rb
npr-0.1.1 lib/npr/entity/pull_quote.rb
npr-0.1.0 lib/npr/entity/pull_quote.rb