Class: Smartfm::RestClient::User

Inherits:
Base
  • Object
show all
Defined in:
lib/smartfm/rest_clients/user.rb

Constant Summary collapse

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 => '/friends',              :http_method => :post},
  :unfollow!            => {:path => '/friends/__username__', :http_method => :delete}
}

Method Summary

Methods inherited from Base

http_method, method_missing, path, valid_action?