Class: Btce::PublicOperation
- Inherits:
-
Object
- Object
- Btce::PublicOperation
- Defined in:
- lib/btce/api/operations/public_operation.rb
Instance Attribute Summary collapse
-
#json ⇒ Object
readonly
Returns the value of attribute json.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#pair ⇒ Object
readonly
Returns the value of attribute pair.
Instance Method Summary collapse
-
#initialize(operation, pair, options = {}) ⇒ PublicOperation
constructor
A new instance of PublicOperation.
- #load_json ⇒ Object
Constructor Details
#initialize(operation, pair, options = {}) ⇒ PublicOperation
Returns a new instance of PublicOperation.
41 42 43 44 45 46 |
# File 'lib/btce/api/operations/public_operation.rb', line 41 def initialize(operation, pair, = {}) @operation = operation @pair = pair @options = load_json end |
Instance Attribute Details
#json ⇒ Object (readonly)
Returns the value of attribute json.
39 40 41 |
# File 'lib/btce/api/operations/public_operation.rb', line 39 def json @json end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
39 40 41 |
# File 'lib/btce/api/operations/public_operation.rb', line 39 def operation @operation end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
39 40 41 |
# File 'lib/btce/api/operations/public_operation.rb', line 39 def @options end |
#pair ⇒ Object (readonly)
Returns the value of attribute pair.
39 40 41 |
# File 'lib/btce/api/operations/public_operation.rb', line 39 def pair @pair end |
Instance Method Details
#load_json ⇒ Object
48 49 50 |
# File 'lib/btce/api/operations/public_operation.rb', line 48 def load_json @json = PublicAPI.get_pair_operation_json pair, operation, end |