Class: Straight::Order
- Inherits:
-
Object
- Object
- Straight::Order
- Includes:
- OrderModule
- Defined in:
- lib/straight/order.rb
Overview
Instances of this class are generated when we’d like to start watching some addresses to check whether a transaction containing a certain amount has arrived to it.
It is worth noting that instances do not know how store themselves anywhere, so as the class is written here, those instances are only supposed to exist in memory. Storing orders is entirely up to you.
Constant Summary
Constants included from OrderModule
Straight::OrderModule::STATUSES
Instance Attribute Summary
Attributes included from OrderModule
Instance Method Summary collapse
-
#initialize ⇒ Order
constructor
A new instance of Order.
Methods included from OrderModule
Constructor Details
#initialize ⇒ Order
Returns a new instance of Order.
233 234 235 |
# File 'lib/straight/order.rb', line 233 def initialize @status = 0 end |