Class: Lemans::Results::CostSource

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



7
8
9
# File 'lib/lemans/results/cost_source.rb', line 7

def model
  @model
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/lemans/results/cost_source.rb', line 7

def name
  @name
end

#priced_asObject (readonly)

Returns the value of attribute priced_as

Returns:

  • (Object)

    the current value of priced_as



7
8
9
# File 'lib/lemans/results/cost_source.rb', line 7

def priced_as
  @priced_as
end

#registryObject (readonly)

Returns the value of attribute registry

Returns:

  • (Object)

    the current value of registry



7
8
9
# File 'lib/lemans/results/cost_source.rb', line 7

def registry
  @registry
end

Class Method Details

.noneObject



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_hObject



10
# File 'lib/lemans/results/cost_source.rb', line 10

def to_h = { name: name, model: model, priced_as: priced_as, registry: registry }.compact