Class: NPR::Byline

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

Overview

Byline represents a listing of the author(s) of an NPR story. From a byline, you have access to:

  • id - unique ID of the byline

  • name - the author’s name

  • person - the NPR ID of the author

  • links - links to all content from a particular author

Instance Attribute Summary collapse

Method Summary

Methods inherited from Content

#initialize

Constructor Details

This class inherits a constructor from NPR::Content

Instance Attribute Details

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/rubynpr/byline.rb', line 11

def id
  @id
end

Returns the value of attribute links.



11
12
13
# File 'lib/rubynpr/byline.rb', line 11

def links
  @links
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/rubynpr/byline.rb', line 11

def name
  @name
end

#personObject

Returns the value of attribute person.



11
12
13
# File 'lib/rubynpr/byline.rb', line 11

def person
  @person
end