Class: Flashboy::Bid

Inherits:
Order
  • Object
show all
Defined in:
lib/flashboy/bid.rb

Instance Attribute Summary

Attributes inherited from Order

#amount, #price, #type

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Bid

Returns a new instance of Bid.



3
4
5
6
# File 'lib/flashboy/bid.rb', line 3

def initialize(attrs = {})
  @type = 'Bid'
  super
end

Instance Method Details

#bid?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/flashboy/bid.rb', line 8

def bid?
  type == 'Bid'
end