Class: AliasMetrics::AliasUsage
- Inherits:
-
Object
- Object
- AliasMetrics::AliasUsage
- Defined in:
- lib/alias_metrics/alias_usage.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) ⇒ AliasUsage
constructor
A new instance of AliasUsage.
Constructor Details
#initialize(alias_, command) ⇒ AliasUsage
Returns a new instance of AliasUsage.
7 8 9 10 11 |
# File 'lib/alias_metrics/alias_usage.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.
3 4 5 |
# File 'lib/alias_metrics/alias_usage.rb', line 3 def alias @alias end |
#command ⇒ Object
Returns the value of attribute command.
4 5 6 |
# File 'lib/alias_metrics/alias_usage.rb', line 4 def command @command end |
#count ⇒ Object
Returns the value of attribute count.
5 6 7 |
# File 'lib/alias_metrics/alias_usage.rb', line 5 def count @count end |