Class: Telapi::Account

Inherits:
Resource
  • Object
show all
Defined in:
lib/telapi/account.rb

Overview

Wraps TelAPI Account functionality

Class Method Summary collapse

Methods inherited from Resource

#attributes, #initialize

Methods included from Network

api_uri, default_options, delete, post, response_format

Constructor Details

This class inherits a constructor from Telapi::Resource

Class Method Details

.getObject

Gets current Telapi account as a Telapi::Account object See www.telapi.com/docs/api/rest/accounts/view/



8
9
10
# File 'lib/telapi/account.rb', line 8

def get
  Account.new(Network.get)
end