Class: Shortenable
- Inherits:
-
Object
- Object
- Shortenable
- Defined in:
- lib/alias_metrics/shortenable.rb
Instance Attribute Summary collapse
-
#alias ⇒ Object
Returns the value of attribute alias.
-
#command ⇒ Object
Returns the value of attribute command.
-
#count ⇒ Object
Returns the value of attribute count.
Instance Method Summary collapse
-
#initialize(alias_, command) ⇒ Shortenable
constructor
A new instance of Shortenable.
Constructor Details
#initialize(alias_, command) ⇒ Shortenable
6 7 8 9 10 |
# File 'lib/alias_metrics/shortenable.rb', line 6 def initialize(alias_, command) self.alias = alias_.freeze self.command = command.freeze self.count = 0 end |
Instance Attribute Details
#alias ⇒ Object
Returns the value of attribute alias.
3 4 5 |
# File 'lib/alias_metrics/shortenable.rb', line 3 def alias @alias end |
#command ⇒ Object
Returns the value of attribute command.
2 3 4 |
# File 'lib/alias_metrics/shortenable.rb', line 2 def command @command end |
#count ⇒ Object
Returns the value of attribute count.
4 5 6 |
# File 'lib/alias_metrics/shortenable.rb', line 4 def count @count end |