Sha256: 21b84cd668d175a0698fdc9839cdcbf0579dd154f2112a8d068581fe9e9689ae

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 Bytes

Contents

module Rainforest
  class GeneratorRowsEndpoint < ApiEndpoint

    def all(params={}, headers={})
      method = ApiMethod.new(:get, "/generators/:id/rows", params, headers, @parent)
      json = @client.execute(method)
      json
    end

    def create(params={}, headers={})
      method = ApiMethod.new(:post, "/generators/:id/rows", params, headers, @parent)
      json = @client.execute(method)
      json
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rainforest-2.1.0 lib/rainforest/endpoints/generator_rows_endpoint.rb
rainforest-2.0.2 lib/rainforest/endpoints/generator_rows_endpoint.rb
rainforest-2.0.1 lib/rainforest/endpoints/generator_rows_endpoint.rb
rainforest-2.0.0 lib/rainforest/endpoints/generator_rows_endpoint.rb