Class: StellarFederation::QueryResponse
- Defined in:
- app/models/stellar_federation/query_response.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
writeonly
Sets the attribute account_id.
-
#memo ⇒ Object
writeonly
Sets the attribute memo.
-
#stellar_address ⇒ Object
writeonly
Sets the attribute stellar_address.
Instance Method Summary collapse
Instance Attribute Details
#account_id=(value) ⇒ Object (writeonly)
Sets the attribute account_id
7 8 9 |
# File 'app/models/stellar_federation/query_response.rb', line 7 def account_id=(value) @account_id = value end |
#memo=(value) ⇒ Object (writeonly)
Sets the attribute memo
7 8 9 |
# File 'app/models/stellar_federation/query_response.rb', line 7 def memo=(value) @memo = value end |
#stellar_address=(value) ⇒ Object (writeonly)
Sets the attribute stellar_address
7 8 9 |
# File 'app/models/stellar_federation/query_response.rb', line 7 def stellar_address=(value) @stellar_address = value end |
Instance Method Details
#memo_type ⇒ Object
9 10 11 |
# File 'app/models/stellar_federation/query_response.rb', line 9 def memo_type "text" end |
#to_json ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/models/stellar_federation/query_response.rb', line 13 def to_json { account_id: account_id, stellar_address: stellar_address, memo_type: memo_type, memo: memo, }.to_json end |