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

#comics ⇒ Harkness::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

#description ⇒ String (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

#events ⇒ Harkness::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

#id ⇒ Integer (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

#modified ⇒ String (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

#name ⇒ String (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

#resourceURI ⇒ String (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

#series ⇒ Harkness::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

#stories ⇒ Harkness::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

#thumbnail ⇒ Harkness::Image (readonly)

Returns the representative image for this character.

Returns:



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

attribute :thumbnail, Harkness::Image

#urls ⇒ Array<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