Sha256: 688d7e275e01585b215381214be7ac6cd8ed10427624acf6f942b9f1fe47e438

Contents?: true

Size: 464 Bytes

Versions: 15

Compression:

Stored size: 464 Bytes

Contents

class Ey::Core::Client::AddonAttachments < Ey::Core::Collection

  model Ey::Core::Client::AddonAttachment

  self.model_root         = "addon_attachment"
  self.model_request      = :get_addon_attachment
  self.collection_root    = "addon_attachments"
  self.collection_request = :get_addon_attachments

  def perform_get(params)
    id = params.delete("id") or raise "ID needed"
    url = "#{self.url}/#{id}"
    params['url'] = url
    super(params)
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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