Class: StellarBase::HorizonClient
- Inherits:
-
Object
- Object
- StellarBase::HorizonClient
- Defined in:
- lib/stellar_base/horizon_client.rb
Instance Method Summary collapse
Instance Method Details
#get_operation(operation_id) ⇒ Object
3 4 5 6 7 |
# File 'lib/stellar_base/horizon_client.rb', line 3 def get_operation(operation_id) response = HTTParty.get(horizon_operations_path(operation_id)) JSON.parse(response.body) if response.code == 200 end |
#get_transaction(transaction_id) ⇒ Object
9 10 11 12 13 |
# File 'lib/stellar_base/horizon_client.rb', line 9 def get_transaction(transaction_id) response = HTTParty.get(horizon_transactions_path(transaction_id)) JSON.parse(response.body) if response.code == 200 end |