Class: Socialcastr::Like

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

Instance Method Summary collapse

Methods inherited from Base

#add_container_id, all, #api, api, collection_name, #collection_path, collection_path, #copy_attributes_from_object, #create, #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_and_prefix, parse_options, prefix, #save, #to_params, #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

Instance Method Details

#unlikable_by?(api_id) ⇒ Boolean

Returns:

  • (Boolean)


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

def unlikable_by?(api_id)
  @unlikable && api_id == self.user_id ? true : false
end