Class: Harkness::Base::Summary

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/harkness/models/base/summary.rb

Overview

Base class for the "summary" objects in an API response. These summary objects are linked objects to the main API response. For example, when retrieving a Character, one of the summary objects is a Series.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString (readonly)

Returns the canonical name of the resource.

Returns:

  • (String)

    the canonical name of the resource.



14
# File 'lib/harkness/models/base/summary.rb', line 14

attribute :name, Shale::Type::String

#resourceURIString (readonly)

Returns the path to the individual resource.

Returns:

  • (String)

    the path to the individual resource.



11
# File 'lib/harkness/models/base/summary.rb', line 11

attribute :resourceURI, Shale::Type::String