class Lightspeed::Accounts
Public Instance Methods
account()
click to toggle source
# File lib/lightspeed/accounts.rb, line 12 def account first_loaded || first end
base_path()
click to toggle source
# File lib/lightspeed/accounts.rb, line 8 def base_path '/Account' end
page(n, **args)
click to toggle source
Calls superclass method
Lightspeed::Collection#page
# File lib/lightspeed/accounts.rb, line 16 def page(n, **args) # turns out lightspeed doesn't respect pagination for accounts. # so page(1) is identical to page(0). # they should be different, thus. # if someone has more than 100 store accounts, well, good for them. n.zero? ? super : [] end