Class: LocaleBase::TrackingToken

Inherits:
Object
  • Object
show all
Defined in:
lib/locale_base/tracking_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tracker, position) ⇒ TrackingToken

Returns a new instance of TrackingToken.



7
8
9
10
# File 'lib/locale_base/tracking_token.rb', line 7

def initialize(tracker, position)
  @tracker = tracker
  @position = position
end

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



5
6
7
# File 'lib/locale_base/tracking_token.rb', line 5

def position
  @position
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/locale_base/tracking_token.rb', line 12

def to_s
  @tracker.retrieve(self)
end