Sha256: 796d71a51dd22a84a00410e0dfa9f8dad70efb404a098a05f0883afc2e893d8f

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

##
# NPR::Entity::ListText
#
module NPR
  module Entity
    class ListText < Base
      attr_accessor :id, :tag
      has_many "paragraphs", :key => "paragraph", :class_name => NPR::Entity::Paragraph

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

      def initialize(json)
        @id = json["id"].to_i
        @tag = json["tag"]
        create_relations(json)
      end
    end # ListText
  end # Entity
end # NPR

Version data entries

5 entries across 5 versions & 1 rubygems

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