Class: Lemans::Results::CostSource
- Inherits:
-
Data
- Object
- Data
- Lemans::Results::CostSource
- Defined in:
- lib/lemans/results/cost_source.rb
Overview
Where a trial's dollar figure came from: a published $0.00 is only worth reading if it can be told apart from "nobody could price this model".
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#priced_as ⇒ Object
readonly
Returns the value of attribute priced_as.
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model
7 8 9 |
# File 'lib/lemans/results/cost_source.rb', line 7 def model @model end |
#name ⇒ Object (readonly)
Returns the value of attribute name
7 8 9 |
# File 'lib/lemans/results/cost_source.rb', line 7 def name @name end |
#priced_as ⇒ Object (readonly)
Returns the value of attribute priced_as
7 8 9 |
# File 'lib/lemans/results/cost_source.rb', line 7 def priced_as @priced_as end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry
7 8 9 |
# File 'lib/lemans/results/cost_source.rb', line 7 def registry @registry end |
Class Method Details
.none ⇒ Object
8 |
# File 'lib/lemans/results/cost_source.rb', line 8 def self.none = new(name: :none, model: nil, priced_as: nil, registry: nil) |
Instance Method Details
#to_h ⇒ Object
10 |
# File 'lib/lemans/results/cost_source.rb', line 10 def to_h = { name: name, model: model, priced_as: priced_as, registry: registry }.compact |