Sha256: 96106d315c2586a8c1f0d8ca90a95c0d98590d54bb917005ea9677788b64aef4

Contents?: true

Size: 552 Bytes

Versions: 4

Compression:

Stored size: 552 Bytes

Contents

##
# NPR::Entity::List
#
module NPR
  module Entity
    class List < Base
      #------------------

      has_many "links",   :key => "link",  :class_name => NPR::Entity::Link
      has_many "stories", :key => "story", :class_name => NPR::Entity::Story

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

      shallow_attribute(
        "title",
        "teaser",
        "miniTeaser"
      )

      #------------------
    
      def initialize(json)
        extract_shallow_attributes(json)
        create_relations(json)
      end
    end # List
  end # Entity
end # NPR

Version data entries

4 entries across 4 versions & 1 rubygems

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