Class: Shortenable

Inherits:
Object
  • Object
show all
Defined in:
lib/alias_metrics/shortenable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aliasObject

Returns the value of attribute alias.



3
4
5
# File 'lib/alias_metrics/shortenable.rb', line 3

def alias
  @alias
end

#commandObject

Returns the value of attribute command.



2
3
4
# File 'lib/alias_metrics/shortenable.rb', line 2

def command
  @command
end

#countObject

Returns the value of attribute count.



4
5
6
# File 'lib/alias_metrics/shortenable.rb', line 4

def count
  @count
end