Class: Lightspeed::Accounts
Constant Summary
Constants inherited
from Collection
Collection::PER_PAGE
Instance Attribute Summary
Attributes inherited from Collection
#context, #resources
Instance Method Summary
collapse
Methods inherited from Collection
#all, #all_loaded, #as_json, #client, collection_name, #create, #destroy, #each, #each_loaded, #each_page, #enum, #enum_page, #find, #first, #first_loaded, #initialize, #inspect, #load_relations_default, resource_class, resource_name, #size, #size_loaded, #to_json, #unload, #update
Instance Method Details
#account ⇒ Object
10
11
12
|
# File 'lib/lightspeed/accounts.rb', line 10
def account
first_loaded || first
end
|
#base_path ⇒ Object
6
7
8
|
# File 'lib/lightspeed/accounts.rb', line 6
def base_path
'/Account'
end
|
#page(n, *args) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/lightspeed/accounts.rb', line 14
def page(n, *args)
n.zero? ? super : []
end
|