Sha256: 7791284fae695286c94e4b0b405143591ea8d169b06e6550c699d451e37887ea

Contents?: true

Size: 683 Bytes

Versions: 5

Compression:

Stored size: 683 Bytes

Contents

##
# NPR::Entity::Member
#
module NPR
  module Entity
    class Member < Base
      attr_accessor :id
      has_one "promoArt",    :class_name => NPR::Entity::MemberPromoArt
      has_one "title",       :class_name => NPR::Entity::Title
      has_one "author",      :class_name => NPR::Entity::Author
      has_one "bookEdition", :class_name => NPR::Entity::PromoArtBookEdition
      has_one "introText",   :class_name => NPR::Entity::IntroText
      has_one "byline",      :class_name => NPR::Entity::MemberByline

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

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