Module: Copy::Operations::Show::ClassMethods

Defined in:
lib/copy/operations/show.rb

Instance Method Summary collapse

Instance Method Details

#show(attributes = {}) ⇒ Copy::Base

Shows a given object

Parameters:

  • id (Integer)

    The id of the object that should be shown

Returns:



9
10
11
12
# File 'lib/copy/operations/show.rb', line 9

def show(attributes={})
  response = Copy.request(:get, nil, api_member_url(attributes[:id], :show), {}, options_for_request(attributes))
  self.new(response)
end