Sha256: 8705a0907fd6a8c287deae0c77952cc9ee0d36271c257f8aa010ea0aba81b9fb

Contents?: true

Size: 449 Bytes

Versions: 89

Compression:

Stored size: 449 Bytes

Contents

# Include all resource files
resources = File.join(File.dirname(__FILE__), "resources", "*.rb")
Dir.glob(resources, &method(:require))

module Recurly
  module Resources
    class Empty < Resource
    end

    class Page < Resource
      # leave data untyped
      define_attribute :data, Array, item_type: Hash
      define_attribute :has_more, :Boolean
      define_attribute :next, String
      define_attribute :object, String
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
recurly-4.5.0 lib/recurly/resources.rb
recurly-4.4.0 lib/recurly/resources.rb
recurly-4.3.0 lib/recurly/resources.rb
recurly-4.2.0 lib/recurly/resources.rb
recurly-4.1.0 lib/recurly/resources.rb
recurly-4.0.1 lib/recurly/resources.rb
recurly-4.0.0 lib/recurly/resources.rb
recurly-3.18.1 lib/recurly/resources.rb
recurly-3.18.0 lib/recurly/resources.rb
recurly-3.17.0 lib/recurly/resources.rb
recurly-3.16.0 lib/recurly/resources.rb
recurly-3.15.0 lib/recurly/resources.rb
recurly-3.14.0 lib/recurly/resources.rb
recurly-3.13.0 lib/recurly/resources.rb
recurly-3.12.0 lib/recurly/resources.rb
recurly-3.11.0 lib/recurly/resources.rb
recurly-3.10.0 lib/recurly/resources.rb
recurly-3.9.0 lib/recurly/resources.rb
recurly-3.8.0 lib/recurly/resources.rb
recurly-3.7.0 lib/recurly/resources.rb