Class: Paid::Account

Inherits:
APIResource show all
Defined in:
lib/paid/account.rb

Instance Attribute Summary collapse

Attributes inherited from APIResource

#api_method, #json

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from APIResource

add_api_attribute, api_attribute_names, #api_attributes, api_subclass_fetch, api_subclasses, #changed_api_attributes, #clear_api_attributes, determine_api_attribute_value, #determine_api_attribute_value, #initialize, #inspect, #inspect_api_attributes, #inspect_nested, #refresh_from, register_api_subclass, #to_json

Constructor Details

This class inherits a constructor from Paid::APIResource

Instance Attribute Details

#business_logoObject

Returns the value of attribute business_logo.



7
8
9
# File 'lib/paid/account.rb', line 7

def 
  @business_logo
end

#business_nameObject

Returns the value of attribute business_name.



5
6
7
# File 'lib/paid/account.rb', line 5

def business_name
  @business_name
end

#business_urlObject

Returns the value of attribute business_url.



6
7
8
# File 'lib/paid/account.rb', line 6

def business_url
  @business_url
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#objectObject (readonly)

Returns the value of attribute object.



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

def object
  @object
end

Class Method Details

.retrieve(params = {}, headers = {}) ⇒ Object



9
10
11
12
# File 'lib/paid/account.rb', line 9

def self.retrieve(params={}, headers={})
  method = APIMethod.new(:get, "/account", params, headers, self)
  self.new(method.execute, method)
end

Instance Method Details

#refresh(params = {}, headers = {}) ⇒ Object



14
15
16
17
# File 'lib/paid/account.rb', line 14

def refresh(params={}, headers={})
  method = APIMethod.new(:get, "/account", params, headers, self)
  self.refresh_from(method.execute, method)
end