Class: Ebisu::Item::Availability
- Inherits:
-
Object
- Object
- Ebisu::Item::Availability
- Defined in:
- lib/ebisu/models/item.rb
Instance Method Summary collapse
- #available? ⇒ True|False
-
#initialize(in_stock) ⇒ Availability
constructor
A new instance of Availability.
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
99 100 101 |
# File 'lib/ebisu/models/item.rb', line 99 def available? @available end |