Class: Socialcastr::User

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

Instance Attribute Summary

Attributes inherited from Base

#prefix_options

Class Method Summary collapse

Methods inherited from Base

all, api, #api, collection_name, collection_path, #collection_path, #copy_attributes_from_object, #create, #destroy, #element_path, element_path, find, find_every, find_single, first, from_hash, #id, #initialize, last, #method_missing, #method_name, model_name, #new?, #param_name, parse, parse_options, prefix, #refresh, #save, set_prefix_options, #to_params, #to_prefix_options, #update

Constructor Details

This class inherits a constructor from Socialcastr::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Socialcastr::Base

Class Method Details

.search(query) ⇒ Object



3
4
5
# File 'lib/socialcastr/user.rb', line 3

def self.search(query)
  Socialcastr::Base.parse(api.get("users/search", :q => query))
end