Class: Paysio::List

Inherits:
Resource show all
Includes:
Actions::Find, Actions::List
Defined in:
lib/paysio/resources/list.rb

Instance Attribute Summary

Attributes inherited from Resource

#redirect

Instance Method Summary collapse

Methods included from Actions::Find

included

Methods included from Actions::List

included

Methods inherited from Resource

#action_path, #as_json, #attribute, #attributes, build_from, #initialize, #inspect, #method_missing, #path, path, #refresh_from, resource, #to_hash, #to_json, #to_s

Constructor Details

This class inherits a constructor from Paysio::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Paysio::Resource

Instance Method Details

#each(&blk) ⇒ Object



7
8
9
# File 'lib/paysio/resources/list.rb', line 7

def each(&blk)
  self.data.each(&blk)
end

#firstObject



11
12
13
# File 'lib/paysio/resources/list.rb', line 11

def first
  self.data.first
end

#lastObject



15
16
17
# File 'lib/paysio/resources/list.rb', line 15

def last
  self.data.last
end