Sha256: 0bd5661d1aab48e122d69d005ae985da3040172361d3b67061b11cabad32bc98

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

module Copy
  module Operations
    module Activity
      module ClassMethods
        # Retrieves all available objects from the Copy API
        #
        # @param [Hash] options Options to pass to the API
        # @return [Array] The available objects
        def activity(attributes={})
          response = Copy.request(
            :get,
            nil,
            api_member_url(attributes[:id], :activity ) + '/@activity',
            {},
            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/activity.rb
copy-ruby-0.0.1 lib/copy/operations/activity.rb