Class: NPR::Organization
Overview
Organization represents an owner organization of a story. Includes:
-
id
- unique ID of the organization to which a story belongs -
name
- the name of the organization -
website
- URL for the organization’s website -
abbr
- an organization’s NPR abbreviation
Example
some_story.organization.name
Instance Attribute Summary collapse
-
#abbr ⇒ Object
Returns the value of attribute abbr.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#website ⇒ Object
Returns the value of attribute website.
Method Summary
Methods inherited from Content
Constructor Details
This class inherits a constructor from NPR::Content
Instance Attribute Details
#abbr ⇒ Object
Returns the value of attribute abbr.
13 14 15 |
# File 'lib/rubynpr/organization.rb', line 13 def abbr @abbr end |
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/rubynpr/organization.rb', line 13 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/rubynpr/organization.rb', line 13 def name @name end |
#website ⇒ Object
Returns the value of attribute website.
13 14 15 |
# File 'lib/rubynpr/organization.rb', line 13 def website @website end |