Class: AliasMetrics::Shortenable
- Inherits:
-
Object
- Object
- AliasMetrics::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
Returns a new instance of Shortenable.
7 8 9 10 11 |
# File 'lib/alias_metrics/shortenable.rb', line 7 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.
4 5 6 |
# File 'lib/alias_metrics/shortenable.rb', line 4 def alias @alias end |
#command ⇒ Object
Returns the value of attribute command.
3 4 5 |
# File 'lib/alias_metrics/shortenable.rb', line 3 def command @command end |
#count ⇒ Object
Returns the value of attribute count.
5 6 7 |
# File 'lib/alias_metrics/shortenable.rb', line 5 def count @count end |