Class: Foobara::CommandConnector::Authenticator
- Inherits:
-
Object
- Object
- Foobara::CommandConnector::Authenticator
- Defined in:
- foobara-0.0.110/projects/command_connectors/src/authenticator.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#explanation ⇒ Object
readonly
Returns the value of attribute explanation.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(symbol: nil, explanation: nil, &block) ⇒ Authenticator
constructor
A new instance of Authenticator.
- #to_proc ⇒ Object
Constructor Details
#initialize(symbol: nil, explanation: nil, &block) ⇒ Authenticator
Returns a new instance of Authenticator.
6 7 8 9 10 11 12 |
# File 'foobara-0.0.110/projects/command_connectors/src/authenticator.rb', line 6 def initialize(symbol: nil, explanation: nil, &block) symbol ||= Util.non_full_name_underscore(self.class).to_sym @symbol = symbol @block = block @explanation = explanation || symbol end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'foobara-0.0.110/projects/command_connectors/src/authenticator.rb', line 4 def block @block end |
#explanation ⇒ Object (readonly)
Returns the value of attribute explanation.
4 5 6 |
# File 'foobara-0.0.110/projects/command_connectors/src/authenticator.rb', line 4 def explanation @explanation end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
4 5 6 |
# File 'foobara-0.0.110/projects/command_connectors/src/authenticator.rb', line 4 def symbol @symbol end |
Instance Method Details
#to_proc ⇒ Object
14 15 16 |
# File 'foobara-0.0.110/projects/command_connectors/src/authenticator.rb', line 14 def to_proc block end |