Class: NPR::Organization

Inherits:
Content show all
Defined in:
lib/rubynpr/organization.rb

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

Method Summary

Methods inherited from Content

#initialize

Constructor Details

This class inherits a constructor from NPR::Content

Instance Attribute Details

#abbrObject

Returns the value of attribute abbr.



13
14
15
# File 'lib/rubynpr/organization.rb', line 13

def abbr
  @abbr
end

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/rubynpr/organization.rb', line 13

def id
  @id
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/rubynpr/organization.rb', line 13

def name
  @name
end

#websiteObject

Returns the value of attribute website.



13
14
15
# File 'lib/rubynpr/organization.rb', line 13

def website
  @website
end