Class: Ubea::Exchange::Base
- Inherits:
-
Object
- Object
- Ubea::Exchange::Base
show all
- Defined in:
- lib/ubea/exchanges/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#last_rtt ⇒ Object
Returns the value of attribute last_rtt.
18
19
20
|
# File 'lib/ubea/exchanges/base.rb', line 18
def last_rtt
@last_rtt
end
|
#order_book ⇒ Object
Returns the value of attribute order_book.
18
19
20
|
# File 'lib/ubea/exchanges/base.rb', line 18
def order_book
@order_book
end
|
#updated_at ⇒ Object
Returns the value of attribute updated_at.
18
19
20
|
# File 'lib/ubea/exchanges/base.rb', line 18
def updated_at
@updated_at
end
|
Instance Method Details
#balance ⇒ Object
42
43
44
|
# File 'lib/ubea/exchanges/base.rb', line 42
def balance
raise NotImplementedError, to_s
end
|
#id ⇒ Object
Also known as:
to_param
20
21
22
23
24
|
# File 'lib/ubea/exchanges/base.rb', line 20
def id
@id ||= begin
self.class.to_s.gsub(/.*::/, "").gsub(/([A-Z])/, "_\\1").gsub(/\A_/, "").downcase
end
end
|
#name ⇒ Object
34
35
36
|
# File 'lib/ubea/exchanges/base.rb', line 34
def name
raise NotImplementedError, to_s
end
|
#short_name ⇒ Object
Also known as:
to_s
28
29
30
|
# File 'lib/ubea/exchanges/base.rb', line 28
def short_name
@short_name ||= self.class.to_s.gsub(/.*::/, "")
end
|
#trade_fee ⇒ Object
38
39
40
|
# File 'lib/ubea/exchanges/base.rb', line 38
def trade_fee
raise NotImplementedError, to_s
end
|