Class: Textmagic::REST::User

Inherits:
InstanceResource show all
Defined in:
lib/textmagic-ruby/rest/users.rb

Overview

A Subaccount resource.

@id

@username

@first_name

@last_name

@balance

@company

@currency

Hash like this:

{
"id": "GBP",
"htmlSymbol": "£"
}

@timezone

Hash like this:

{
"area": "Pacific",
"dst": "0",
"offset": "-39600",
"timezone": "Pacific/Midway"
}

@subaccount_type

Instance Method Summary collapse

Methods inherited from InstanceResource

#initialize, #inspect, #load_attributes

Methods included from Utils

#key_map, #resource, #to_camel_case, #to_underscore_case

Constructor Details

This class inherits a constructor from Textmagic::REST::InstanceResource

Instance Method Details

#refreshObject



155
156
157
158
# File 'lib/textmagic-ruby/rest/users.rb', line 155

def refresh
  load_attributes(@client.get("#{@path}", {}))
  self
end