Module: HenshinBelt::AuthMethods

Defined in:
lib/henshin_belt/auth_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#meObject

Returns the value of attribute me.



5
6
7
# File 'lib/henshin_belt/auth_methods.rb', line 5

def me
  @me
end

#resource_credentialsObject

Returns the value of attribute resource_credentials.



5
6
7
# File 'lib/henshin_belt/auth_methods.rb', line 5

def resource_credentials
  @resource_credentials
end

#resource_ownerObject

Returns the value of attribute resource_owner.



5
6
7
# File 'lib/henshin_belt/auth_methods.rb', line 5

def resource_owner
  @resource_owner
end

#resource_tokenObject

Returns the value of attribute resource_token.



5
6
7
# File 'lib/henshin_belt/auth_methods.rb', line 5

def resource_token
  @resource_token
end

Instance Method Details

#protected_endpoint=(protected) ⇒ Object

rubocop:disable Lint/DuplicateMethods



8
9
10
# File 'lib/henshin_belt/auth_methods.rb', line 8

def protected_endpoint=(protected)
  @protected_endpoint = protected
end

#protected_endpoint?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/henshin_belt/auth_methods.rb', line 12

def protected_endpoint?
  @protected_endpoint || false
end