Sha256: aee05c50370ae00fd713180478f62701d4759f6449d597951ff7176be33184a9

Contents?: true

Size: 1.26 KB

Versions: 17

Compression:

Stored size: 1.26 KB

Contents

module Vimeo
  module Simple

    class Activity < Vimeo::Simple::Base
      # Returns a list of a user's activities.
      #
      # @param [String] username The user's id or username.
      def self.user_did(username)
        get("/activity/#{username}/user_did.json")
      end
    
      # Returns a list of activities that happened to a user.
      #
      # @param [String] username The user's id or username.
      def self.happened_to_user(username)
        get("/activity/#{username}/happened_to_user.json")
      end
    
      # Returns a list of activities a user's contact's did.
      #
      # @param [String] username The user's id or username.
      def self.contacts_did(username)
        get("/activity/#{username}/contacts_did.json")
      end
    
      # Returns a list of activities that happened to a user's contacts.
      #
      # @param [String] username The user's id or username.
      def self.happened_to_contacts(username)
        get("/activity/#{username}/happened_to_contacts.json")
      end
    
      # Returns a list of activities everyone did.
      #
      # @param [String] username The user's id or username.
      def self.everyone_did(username)
        get("/activity/#{username}/everyone_did.json")
      end
    end

  end # Simple
end # Vimeo

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
vimeo-1.5.4 lib/vimeo/simple/activity.rb
vimeo-1.5.3 lib/vimeo/simple/activity.rb
slainer68_vimeo-1.5.2 lib/vimeo/simple/activity.rb
vimeo-1.5.2 lib/vimeo/simple/activity.rb
vimeo-1.5.1 lib/vimeo/simple/activity.rb
vimeo-1.5.0 lib/vimeo/simple/activity.rb
slainer68_vimeo-1.4.4 lib/vimeo/simple/activity.rb
slainer68_vimeo-1.4.3 lib/vimeo/simple/activity.rb
vimeo-1.4.3 lib/vimeo/simple/activity.rb
vimeo-1.4.2 lib/vimeo/simple/activity.rb
vimeo-1.4.1 lib/vimeo/simple/activity.rb
vimeo-1.4.0 lib/vimeo/simple/activity.rb
vimeo-1.3.0 lib/vimeo/simple/activity.rb
vimeo-1.2.2 lib/vimeo/simple/activity.rb
vimeo-1.2.0 lib/vimeo/simple/activity.rb
vimeo-1.1.0 lib/vimeo/simple/activity.rb
vimeo-1.0.0 lib/vimeo/simple/activity.rb