Sha256: d18e2067ebc67f8a953cf13ffaf7af27756c6d1e0c238d56eb13f8653e5c8d6b
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
module Copy module Operations module Show module ClassMethods # Shows a given object # # @param [Integer] id The id of the object that should be shown # @return [Copy::Base] The found object def show(attributes={}) response = Copy.request(:get, nil, api_member_url(attributes[:id], :show), {}, options_for_request(attributes)) self.new(response) end end def self.included(base) base.extend(ClassMethods) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
copy-ruby-0.0.2 | lib/copy/operations/show.rb |
copy-ruby-0.0.1 | lib/copy/operations/show.rb |