class EasySMS::AccountResource
Public Instance Methods
get()
click to toggle source
# File lib/easy_sms/account_resource.rb, line 3 def get res = client.get('', {}) JSON.parse(res).tap do |json| json['c_at'] = Time.parse(json['c_at']) if json['c_at'] end end
update(attrs = {})
click to toggle source
# File lib/easy_sms/account_resource.rb, line 11 def update(attrs = {}) res = client.put('', attrs) JSON.parse(res) end