Class: Straight::Order

Inherits:
Object
  • Object
show all
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

#old_status

Instance Method Summary collapse

Methods included from OrderModule

included

Constructor Details

#initializeOrder

Returns a new instance of Order.



233
234
235
# File 'lib/straight/order.rb', line 233

def initialize
  @status = 0
end