Class: StellarFederation::QueryResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
app/models/stellar_federation/query_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#account_id=(value) ⇒ Object (writeonly)

Sets the attribute account_id

Parameters:

  • value

    the value to set the attribute account_id to.



7
8
9
# File 'app/models/stellar_federation/query_response.rb', line 7

def (value)
  @account_id = value
end

#memo=(value) ⇒ Object (writeonly)

Sets the attribute memo

Parameters:

  • value

    the value to set the attribute memo to.



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

Parameters:

  • value

    the value to set the attribute stellar_address to.



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_typeObject



9
10
11
# File 'app/models/stellar_federation/query_response.rb', line 9

def memo_type
  "text"
end

#to_jsonObject



13
14
15
16
17
18
19
20
# File 'app/models/stellar_federation/query_response.rb', line 13

def to_json
  {
    account_id: ,
    stellar_address: stellar_address,
    memo_type: memo_type,
    memo: memo,
  }.to_json
end