Class: Everybit::Account

Inherits:
Resource show all
Defined in:
lib/everybit/account.rb

Instance Attribute Summary

Attributes inherited from EverybitObject

#code, #status

Class Method Summary collapse

Methods inherited from Resource

class_name, url

Methods inherited from EverybitObject

#[], #[]=, #initialize, #inspect, #to_json, #to_s

Constructor Details

This class inherits a constructor from Everybit::EverybitObject

Class Method Details

.retrieve(params = {}) ⇒ Object



3
4
5
6
# File 'lib/everybit/account.rb', line 3

def self.retrieve(params={})
  res = Everybit.request(:get, '/v1/account', params)
  self.new(res[:code], res[:status], res[:data])
end