Class: StubComparisonPackage

Inherits:
Object
  • Object
show all
Defined in:
test/test_model/comparison.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubComparisonPackage) initialize(size, price, name = nil)

A new instance of StubComparisonPackage



28
29
30
# File 'test/test_model/comparison.rb', line 28

def initialize(size, price, name=nil)
  @comparable_size, @price_public, @name_base = size, price, name
end

Instance Attribute Details

- (Object) atc_class

Returns the value of attribute atc_class



27
28
29
# File 'test/test_model/comparison.rb', line 27

def atc_class
  @atc_class
end

- (Object) comparable_size (readonly)

Returns the value of attribute comparable_size



26
27
28
# File 'test/test_model/comparison.rb', line 26

def comparable_size
  @comparable_size
end

- (Object) comparables

Returns the value of attribute comparables



27
28
29
30
31
32
33
# File 'test/test_model/comparison.rb', line 27

def comparables
  if(@comparables)
    @comparables
  else
    []
  end
end

- (Object) name_base (readonly)

Returns the value of attribute name_base



26
27
28
# File 'test/test_model/comparison.rb', line 26

def name_base
  @name_base
end

- (Object) price_public (readonly)

Returns the value of attribute price_public



26
27
28
# File 'test/test_model/comparison.rb', line 26

def price_public
  @price_public
end

Instance Method Details

- (Object) sequence



31
32
33
# File 'test/test_model/comparison.rb', line 31

def sequence
  self
end