Class: Harkness::Base::DataWrapper

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

Overview

The top level wrapper of a response from the API.

Instance Attribute Summary collapse

Instance Attribute Details

#attributionHTMLString (readonly)

Returns an HTML representation of the attribution notice for this result. Please display either this notice or the contents of the attributionText field on all screens which contain data from the Marvel Comics API.

Returns:

  • (String)

    an HTML representation of the attribution notice for this result. Please display either this notice or the contents of the attributionText field on all screens which contain data from the Marvel Comics API.



25
# File 'lib/harkness/models/base/data_wrapper.rb', line 25

attribute :attributionHTML, Shale::Type::String

#attributionTextString (readonly)

Returns the attribution notice for this result. Please display either this notice or the contents of the attributionHTML field on all screens which contain data from the Marvel Comics API.

Returns:

  • (String)

    the attribution notice for this result. Please display either this notice or the contents of the attributionHTML field on all screens which contain data from the Marvel Comics API.



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

attribute :attributionText, Shale::Type::String

#codeInteger (readonly)

Returns the HTTP status code of the returned result.

Returns:

  • (Integer)

    the HTTP status code of the returned result.



9
# File 'lib/harkness/models/base/data_wrapper.rb', line 9

attribute :code, Shale::Type::Integer

Returns the copyright notice for the returned result.

Returns:

  • (String)

    the copyright notice for the returned result.



15
# File 'lib/harkness/models/base/data_wrapper.rb', line 15

attribute :copyright, Shale::Type::String

#dataHarkness::Base::DataContainer (readonly)

Returns the results returned by the call.

Returns:



28
# File 'lib/harkness/models/base/data_wrapper.rb', line 28

attribute :data, Harkness::Base::DataContainer

#etagString (readonly)

Returns a digest value of the content returned by the call.

Returns:

  • (String)

    a digest value of the content returned by the call.



31
# File 'lib/harkness/models/base/data_wrapper.rb', line 31

attribute :etag, Shale::Type::String

#statusString (readonly)

Returns a string description of the call status.

Returns:

  • (String)

    a string description of the call status.



12
# File 'lib/harkness/models/base/data_wrapper.rb', line 12

attribute :status, Shale::Type::String