Class: Harkness::Character

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

Overview

An individual character.

Instance Attribute Summary collapse

Instance Attribute Details

#comicsHarkness::ComicList (readonly)

Returns a resource list containing comics which feature this character.

Returns:



29
# File 'lib/harkness/models/character.rb', line 29

attribute :comics, Harkness::ComicList

#descriptionString (readonly)

Returns a short bio or description of the character.

Returns:

  • (String)

    a short bio or description of the character



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

attribute :description, Shale::Type::String

#eventsHarkness::EventList (readonly)

Returns a resource list of events in which this character appears.

Returns:



35
# File 'lib/harkness/models/character.rb', line 35

attribute :events, Harkness::EventList

#idInteger (readonly)

Returns the unique ID of the character resource.

Returns:

  • (Integer)

    the unique ID of the character resource.



8
# File 'lib/harkness/models/character.rb', line 8

attribute :id, Shale::Type::Integer

#modifiedString (readonly)

Returns the date the resource was most recently modified.

Returns:

  • (String)

    the date the resource was most recently modified.



17
# File 'lib/harkness/models/character.rb', line 17

attribute :modified, Shale::Type::String

#nameString (readonly)

Returns the name of the character.

Returns:

  • (String)

    the name of the character.



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

attribute :name, Shale::Type::String

#resourceURIString (readonly)

Returns the canonical URL identifier for this resource.

Returns:

  • (String)

    the canonical URL identifier for this resource.



20
# File 'lib/harkness/models/character.rb', line 20

attribute :resourceURI, Shale::Type::String

#seriesHarkness::SeriesList (readonly)

Returns a resource list of series in which this character appears.

Returns:



38
# File 'lib/harkness/models/character.rb', line 38

attribute :series, Harkness::SeriesList

#storiesHarkness::StoryList (readonly)

Returns a resource list of stories in which this character appears.

Returns:



32
# File 'lib/harkness/models/character.rb', line 32

attribute :stories, Harkness::StoryList

#thumbnailHarkness::Image (readonly)

Returns the representative image for this character.

Returns:



26
# File 'lib/harkness/models/character.rb', line 26

attribute :thumbnail, Harkness::Image

#urlsArray<Harkness::URL> (readonly)

Returns a set of public web site URLs for the resource.

Returns:

  • (Array<Harkness::URL>)

    a set of public web site URLs for the resource.



23
# File 'lib/harkness/models/character.rb', line 23

attribute :urls, Harkness::URL, collection: true