Class: Socialcastr::Like

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

Instance Attribute Summary

Attributes inherited from Base

#prefix_options

Instance 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

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)
  api_id == self.user.id ? true : false
end