Sha256: 5fc569d74e77381f749f7e5aed565a718f15a6f50a7fe359b9ba55f9f0ce00f1

Contents?: true

Size: 574 Bytes

Versions: 53

Compression:

Stored size: 574 Bytes

Contents

class Ey::Core::Client
  class Real
    def update_addon(params={})
      url = params.delete("url") or raise "URL needed"
      request(
        :method => :put,
        :url    => url,
        :params => params,
      )
    end
  end # Real

  class Mock
    def update_addon(params={})
      addon = params["addon"]

      extract_url_params!(params)

      find(:accounts, params["account"])

      resource = self.find(:addons, params["addon"])

      response(
        :body => {"addon" => resource.merge!(addon) },
      )
    end
  end # Mock
end # Ey::Core::Client

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
ey-pro-cli-0.0.15 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.14 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.13 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.12 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.11 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.10 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.9 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.8 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.7 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.6 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.5 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.4 lib/vendor/core/ey-core/requests/update_addon.rb
ey-pro-cli-0.0.3 lib/vendor/core/ey-core/requests/update_addon.rb