Class: Kosher::Shipping

Inherits:
Structure
  • Object
show all
Defined in:
lib/kosher/shipping.rb

Instance Method Summary collapse

Instance Method Details

#available?Boolean Also known as: kosher?

Returns:

  • (Boolean)


8
9
10
# File 'lib/kosher/shipping.rb', line 8

def available?
  Boolean(available)
end

#costObject



12
13
14
# File 'lib/kosher/shipping.rb', line 12

def cost
  Money.new(cents, currency)
end

#fast?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/kosher/shipping.rb', line 16

def fast?
  Boolean(fast)
end