Class: NPR::Entity::Organization

Inherits:
Base
  • Object
show all
Defined in:
lib/npr/entity/organization.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concern::ShallowAttributes

included

Methods included from Concern::Relation

included

Constructor Details

#initialize(json) ⇒ Organization

Returns a new instance of Organization.



10
11
12
13
14
15
# File 'lib/npr/entity/organization.rb', line 10

def initialize(json)
  extract_shallow_attributes(json)

  @orgId   = json["orgId"].to_i
  @orgAbbr = json["orgAbbr"]
end

Instance Attribute Details

#orgAbbrObject

Returns the value of attribute orgAbbr.



7
8
9
# File 'lib/npr/entity/organization.rb', line 7

def orgAbbr
  @orgAbbr
end

#orgIdObject

Returns the value of attribute orgId.



7
8
9
# File 'lib/npr/entity/organization.rb', line 7

def orgId
  @orgId
end