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.



141
142
143
# File 'lib/liblynx-api/client.rb', line 141

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



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

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

#delete(account_identity) ⇒ Object

Delete an existing account.

Parameters:

  • account_identity:


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

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

#info(account_identity) ⇒ Object

Info for existing account.

Parameters:

  • account_identity:


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

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

#list(body = {}) ⇒ Object

List existing accounts.

Parameters:

  • body:

    the object to pass as the request payload



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

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



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

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