Sha256: 49b3a9fab4934b63b66971464bc5622fcabdafc1c3582f9ac4c334e41d4a7a71

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

##
# NPR::Entity::Organization
#
module NPR
  module Entity
    class Organization < Base
      attr_accessor :orgId, :orgAbbr
      shallow_attribute "name", "website"
      
      def initialize(json)
        extract_shallow_attributes(json)
        
        @orgId   = json["orgId"].to_i
        @orgAbbr = json["orgAbbr"]
      end
    end # Organization
  end # Entity
end # NPR

Version data entries

4 entries across 4 versions & 1 rubygems

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