Sha256: ec2a69508ad4b0e258889083a98353f7c1ef4f94b9165d993b681a88b072aa03

Contents?: true

Size: 285 Bytes

Versions: 9

Compression:

Stored size: 285 Bytes

Contents

module Paysio
  class List < Paysio::Resource
    include Paysio::Actions::List
    include Paysio::Actions::Find
    resource :list

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

    def first
      self.data.first
    end

    def last
      self.data.last
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paysio-1.0.10 lib/paysio/resources/list.rb
paysio-1.0.9 lib/paysio/resources/list.rb
paysio-1.0.8 lib/paysio/resources/list.rb
paysio-1.0.7 lib/paysio/resources/list.rb
paysio-1.0.6 lib/paysio/resources/list.rb
paysio-1.0.5 lib/paysio/resources/list.rb
paysio-1.0.4 lib/paysio/resources/list.rb
paysio-1.0.3 lib/paysio/resources/list.rb
paysio-1.0.2 lib/paysio/resources/list.rb