Sha256: 6900c489fb27bd1d3c5aaeaa8e3f35f17362463117a03e644c5050596d847f37

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

class Smartfm::RestClient::User < Smartfm::RestClient::Base

  ACTIONS = {
    :current              => {:path => '/users'                           },
    :find                 => {:path => '/users/__username__'              },
    :lists                => {:path => '/users/__username__/lists'        },
    :items                => {:path => '/users/__username__/items'        },
    :friends              => {:path => '/users/__username__/friends'      },
    :followers            => {:path => '/users/__username__/followers'    },
    :friends_of_current   => {:path => '/friends'                         },
    :followers_of_current => {:path => '/followers'                       },
    :likes                => {:path => '/users/__username__/likes'        },
    :notifications        => {:path => '/users/__username__/notifications'},
    :matching             => {:path => '/users/matching/__keyword__'      },
    :study_results        => {:path => '/users/__username__/study_results/__application__'},
    :follow!              => {:path => '/users/__username__/friends', :http_method => :post},
    :unfollow!            => {:path => '/users/__username__/friends', :http_method => :delete}
  }

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
nov-smartfm-0.4.1 lib/smartfm/rest_clients/user.rb
nov-smartfm-1.0.0 lib/smartfm/rest_clients/user.rb
smartfm-1.0.1 lib/smartfm/rest_clients/user.rb
smartfm-1.0.0 lib/smartfm/rest_clients/user.rb