Class: Coinsetter::Order
Instance Attribute Summary collapse
-
#account_uuid ⇒ Object
Returns the value of attribute account_uuid.
-
#cost_basis ⇒ Object
Returns the value of attribute cost_basis.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#customer_uuid ⇒ Object
Returns the value of attribute customer_uuid.
-
#filled_quantity ⇒ Object
Returns the value of attribute filled_quantity.
-
#open_quantity ⇒ Object
Returns the value of attribute open_quantity.
-
#order_number ⇒ Object
Returns the value of attribute order_number.
-
#order_ype ⇒ Object
Returns the value of attribute order_ype.
-
#requested_price ⇒ Object
Returns the value of attribute requested_price.
-
#requested_uantity ⇒ Object
Returns the value of attribute requested_uantity.
-
#routing_method ⇒ Object
Returns the value of attribute routing_method.
-
#side ⇒ Object
Returns the value of attribute side.
-
#stage ⇒ Object
Returns the value of attribute stage.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#attributes, #attributes=, #initialize
Constructor Details
This class inherits a constructor from Coinsetter::Model
Instance Attribute Details
#account_uuid ⇒ Object
Returns the value of attribute account_uuid.
3 4 5 |
# File 'lib/coinsetter/order.rb', line 3 def account_uuid @account_uuid end |
#cost_basis ⇒ Object
Returns the value of attribute cost_basis.
3 4 5 |
# File 'lib/coinsetter/order.rb', line 3 def cost_basis @cost_basis end |
#create_date ⇒ Object
Returns the value of attribute create_date.
5 6 7 |
# File 'lib/coinsetter/order.rb', line 5 def create_date @create_date end |
#customer_uuid ⇒ Object
Returns the value of attribute customer_uuid.
3 4 5 |
# File 'lib/coinsetter/order.rb', line 3 def customer_uuid @customer_uuid end |
#filled_quantity ⇒ Object
Returns the value of attribute filled_quantity.
3 4 5 |
# File 'lib/coinsetter/order.rb', line 3 def filled_quantity @filled_quantity end |
#open_quantity ⇒ Object
Returns the value of attribute open_quantity.
3 4 5 |
# File 'lib/coinsetter/order.rb', line 3 def open_quantity @open_quantity end |
#order_number ⇒ Object
Returns the value of attribute order_number.
4 5 6 |
# File 'lib/coinsetter/order.rb', line 4 def order_number @order_number end |
#order_ype ⇒ Object
Returns the value of attribute order_ype.
4 5 6 |
# File 'lib/coinsetter/order.rb', line 4 def order_ype @order_ype end |
#requested_price ⇒ Object
Returns the value of attribute requested_price.
4 5 6 |
# File 'lib/coinsetter/order.rb', line 4 def requested_price @requested_price end |
#requested_uantity ⇒ Object
Returns the value of attribute requested_uantity.
4 5 6 |
# File 'lib/coinsetter/order.rb', line 4 def requested_uantity @requested_uantity end |
#routing_method ⇒ Object
Returns the value of attribute routing_method.
5 6 7 |
# File 'lib/coinsetter/order.rb', line 5 def routing_method @routing_method end |
#side ⇒ Object
Returns the value of attribute side.
4 5 6 |
# File 'lib/coinsetter/order.rb', line 4 def side @side end |
#stage ⇒ Object
Returns the value of attribute stage.
4 5 6 |
# File 'lib/coinsetter/order.rb', line 4 def stage @stage end |
#symbol ⇒ Object
Returns the value of attribute symbol.
5 6 7 |
# File 'lib/coinsetter/order.rb', line 5 def symbol @symbol end |
#uuid ⇒ Object
Returns the value of attribute uuid.
3 4 5 |
# File 'lib/coinsetter/order.rb', line 3 def uuid @uuid end |
Instance Method Details
#destroy!(client_session_uuid) ⇒ Object
7 8 9 10 |
# File 'lib/coinsetter/order.rb', line 7 def destroy!(client_session_uuid) call = Coinsetter::Net.delete(path, {"coinsetter-client-session-id" => client_session_uuid}) parse call end |
#parse(string) ⇒ Object
16 17 18 |
# File 'lib/coinsetter/order.rb', line 16 def parse(string) Coinsetter::Helper. string end |
#path ⇒ Object
12 13 14 |
# File 'lib/coinsetter/order.rb', line 12 def path "order/#{uuid}" end |