Class: Ebisu::Item::Availability

Inherits:
Object
  • Object
show all
Defined in:
lib/ebisu/models/item.rb

Instance Method Summary collapse

Constructor Details

#initialize(in_stock) ⇒ Availability

Returns a new instance of Availability.



94
95
96
# File 'lib/ebisu/models/item.rb', line 94

def initialize(in_stock)
  @available = in_stock
end

Instance Method Details

#available?True|False

Returns:

  • (True|False)


99
100
101
# File 'lib/ebisu/models/item.rb', line 99

def available?
  @available
end