Class: Harkness::ComicPrice

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

Overview

The price of a comic.

Instance Attribute Summary collapse

Instance Attribute Details

#priceFloat (readonly)

Returns the price (all prices in USD).

Returns:

  • (Float)

    the price (all prices in USD).



21
# File 'lib/harkness/models/comic.rb', line 21

attribute :price, Shale::Type::Float

#typeString (readonly)

Returns a description of the price (e.g. print price, digital price).

Returns:

  • (String)

    a description of the price (e.g. print price, digital price).



18
# File 'lib/harkness/models/comic.rb', line 18

attribute :type, Shale::Type::String