Module: Authorization::Fbuser::V1::User

Defined in:
lib/generators/fbuser/authorizations/templates/user.rb

Class Method Summary collapse

Class Method Details

.create?(user_params, tokenUser) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 16

def self.create?(user_params,tokenUser)
	return true
end

.destroy?(user, tokenUser) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 24

def self.destroy?(user,tokenUser)
	return true
end

.include_created_at?(current_user, user_object, options) ⇒ Boolean

Returns:

  • (Boolean)


49
50
51
52
53
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 49

def self.include_created_at?(current_user,user_object,options)
  	action = options[:url_options][:_recall][:action]
  	controller = options[:url_options][:_recall][:controller]
	return true
end

.include_fb_user_id?(current_user, user_object, options) ⇒ Boolean

Returns:

  • (Boolean)


43
44
45
46
47
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 43

def self.include_fb_user_id?(current_user,user_object,options)
	action = options[:url_options][:_recall][:action]
  	controller = options[:url_options][:_recall][:controller]
	return true
end

.include_id?(current_user, user_object, options) ⇒ Boolean

Used in the serializer

Returns:

  • (Boolean)


30
31
32
33
34
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 30

def self.include_id?(current_user,user_object,options)
  	action = options[:url_options][:_recall][:action]
  	controller = options[:url_options][:_recall][:controller]
	return true
end

.include_updated_at?(current_user, user_object, options) ⇒ Boolean

Returns:

  • (Boolean)


55
56
57
58
59
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 55

def self.include_updated_at?(current_user,user_object,options)
  	action = options[:url_options][:_recall][:action]
  	controller = options[:url_options][:_recall][:controller]
	return true
end

.include_username?(current_user, user_object, options) ⇒ Boolean

Returns:

  • (Boolean)


37
38
39
40
41
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 37

def self.include_username?(current_user,user_object,options)
	action = options[:url_options][:_recall][:action]
  	controller = options[:url_options][:_recall][:controller]
	return true
end

.index?(tokenUser) ⇒ Boolean

Used in the controller

Returns:

  • (Boolean)


8
9
10
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 8

def self.index?(tokenUser)
	return true
end

.show?(user, tokenUser) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 12

def self.show?(user,tokenUser)
	return true
end

.update?(user, user_params, tokenUser) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 20

def self.update?(user,user_params,tokenUser)
     return true
end