Module: Paysio::Actions::List::ClassMethods

Defined in:
lib/paysio/actions/list.rb

Instance Method Summary collapse

Instance Method Details

#all(params = {}) ⇒ Object



5
6
7
8
# File 'lib/paysio/actions/list.rb', line 5

def all(params = {})
  response = Paysio::Client.request(:get, path, params)
  Resource.build_from(response)
end

#countObject



10
11
12
# File 'lib/paysio/actions/list.rb', line 10

def count
  all.count
end

#firstObject



14
15
16
# File 'lib/paysio/actions/list.rb', line 14

def first
  all.first
end

#lastObject



18
19
20
# File 'lib/paysio/actions/list.rb', line 18

def last
  all.last
end