Module: Nis::Endpoint::Account::Get

Included in:
Nis
Defined in:
lib/nis/endpoint/account/get.rb

Instance Method Summary collapse

Instance Method Details

#account_get(address:) ⇒ Nis::Struct::AccountMetaDataPair



6
7
8
9
10
11
12
# File 'lib/nis/endpoint/account/get.rb', line 6

def (address:)
  request!(:get, '/account/get',
    address: address
  ) do |res|
    Nis::Struct::AccountMetaDataPair.build(res)
  end
end

#account_get_forwarded(address:) ⇒ Nis::Struct::AccountMetaDataPair



28
29
30
31
32
33
34
# File 'lib/nis/endpoint/account/get.rb', line 28

def (address:)
  request!(:get, '/account/get/forwarded',
    address: address
  ) do |res|
    Nis::Struct::AccountMetaDataPair.build(res)
  end
end

#account_get_forwarded_from_public_key(public_key:) ⇒ Nis::Struct::AccountMetaDataPair

Returns delegate account.



39
40
41
42
43
44
45
# File 'lib/nis/endpoint/account/get.rb', line 39

def (public_key:)
  request!(:get, '/account/get/forwarded/from-public-key',
    publicKey: public_key
  ) do |res|
    Nis::Struct::AccountMetaDataPair.build(res)
  end
end

#account_get_from_public_key(public_key:) ⇒ Nis::Struct::AccountMetaDataPair



17
18
19
20
21
22
23
# File 'lib/nis/endpoint/account/get.rb', line 17

def (public_key:)
  request!(:get, '/account/get/from-public-key',
    publicKey: public_key
  ) do |res|
    Nis::Struct::AccountMetaDataPair.build(res)
  end
end