Class: LibLynxAPI::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/liblynx-api/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Account

Returns a new instance of Account.



149
150
151
# File 'lib/liblynx-api/client.rb', line 149

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new account.

Parameters:

  • body:

    the object to pass as the request payload



156
157
158
# File 'lib/liblynx-api/client.rb', line 156

def create(body = {})
  @client..create(body)
end

#delete(account_identity) ⇒ Object

Delete an existing account.

Parameters:

  • account_identity:


163
164
165
# File 'lib/liblynx-api/client.rb', line 163

def delete()
  @client..delete()
end

#info(account_identity) ⇒ Object

Info for existing account.

Parameters:

  • account_identity:


170
171
172
# File 'lib/liblynx-api/client.rb', line 170

def info()
  @client..info()
end

#list(body = {}) ⇒ Object

List existing accounts.

Parameters:

  • body:

    the object to pass as the request payload



177
178
179
# File 'lib/liblynx-api/client.rb', line 177

def list(body = {})
  @client..list(body)
end

#update(account_identity, body = {}) ⇒ Object

Update an existing account.

Parameters:

  • account_identity:
  • body:

    the object to pass as the request payload



185
186
187
# File 'lib/liblynx-api/client.rb', line 185

def update(, body = {})
  @client..update(, body)
end