Class: NPR::Entity::Organization
- Defined in:
- lib/npr/entity/organization.rb
Instance Attribute Summary collapse
-
#orgAbbr ⇒ Object
Returns the value of attribute orgAbbr.
-
#orgId ⇒ Object
Returns the value of attribute orgId.
Instance Method Summary collapse
-
#initialize(json) ⇒ Organization
constructor
A new instance of Organization.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
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
#orgAbbr ⇒ Object
Returns the value of attribute orgAbbr.
7 8 9 |
# File 'lib/npr/entity/organization.rb', line 7 def orgAbbr @orgAbbr end |
#orgId ⇒ Object
Returns the value of attribute orgId.
7 8 9 |
# File 'lib/npr/entity/organization.rb', line 7 def orgId @orgId end |