class CFC::User

Public Class Methods

details() click to toggle source

Get full details of the current user.

# File lib/cfc/objects/user.rb, line 8
def self.details
  new(@api.get_json('user')['result'])
end
edit(first_name: nil, last_name: nil, telephone: nil, country: nil, zipcode: nil) click to toggle source

Update part of the current user's details as permitted.

@param first_name [String] @param last_name [String] @param telephone [String] @param country [String] @param zipcode [String]

# File lib/cfc/objects/user.rb, line 19
def self.edit(first_name: nil, last_name: nil, telephone: nil, country: nil, zipcode: nil)
  data = opts(binding)
  @api.patch_to_json('user', data)
end