Sha256: d3aef06de98fcd3d360110fed2380f448ebaf80422012088f2b9424e1602dbc5

Contents?: true

Size: 976 Bytes

Versions: 24

Compression:

Stored size: 976 Bytes

Contents

module Heroku
  class API

    # DELETE /features/:feature
    def delete_feature(feature, app = nil)
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/features/#{feature}",
        :query    => { 'app' => app }
      )
    end

    # GET /features
    def get_features(app = nil)
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/features",
        :query    => { 'app' => app }
      )
    end

    # GET /features/:feature
    def get_feature(feature, app = nil)
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/features/#{feature}",
        :query    => { 'app' => app }
      )
    end

    # POST /features/:feature
    def post_feature(feature, app = nil)
      request(
        :expects  => [200, 201],
        :method   => :post,
        :path     => "/features/#{feature}",
        :query    => { 'app' => app }
      )
    end

  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
heroku-api-0.4.3 lib/heroku/api/features.rb
heroku-api-0.4.2 lib/heroku/api/features.rb
heroku-api-0.4.1 lib/heroku/api/features.rb
heroku-api-0.4.0 lib/heroku/api/features.rb
heroku-api-0.3.23 lib/heroku/api/features.rb
heroku-api-0.3.22 lib/heroku/api/features.rb
heroku-api-0.3.21 lib/heroku/api/features.rb
heroku-api-0.3.20 lib/heroku/api/features.rb
heroku-api-0.3.19 lib/heroku/api/features.rb
heroku-api-0.3.18 lib/heroku/api/features.rb
heroku-api-0.3.17 lib/heroku/api/features.rb
heroku-api-0.3.16 lib/heroku/api/features.rb
heroku-api-0.3.15 lib/heroku/api/features.rb
heroku-api-0.3.14 lib/heroku/api/features.rb
heroku-api-0.3.13 lib/heroku/api/features.rb
heroku-api-0.3.12 lib/heroku/api/features.rb
heroku-api-0.3.11 lib/heroku/api/features.rb
heroku-api-0.3.10 lib/heroku/api/features.rb
pogoapp-api-0.3.8 lib/heroku/api/features.rb
heroku-api-0.3.9 lib/heroku/api/features.rb