Class: Zabbirc::IdShortener::IdTranslation

Inherits:
Struct
  • Object
show all
Defined in:
lib/zabbirc/id_shortener.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/zabbirc/id_shortener.rb', line 5

def id
  @id
end

#shorten_idObject

Returns the value of attribute shorten_id

Returns:

  • (Object)

    the current value of shorten_id



5
6
7
# File 'lib/zabbirc/id_shortener.rb', line 5

def shorten_id
  @shorten_id
end

#used_atObject

Returns the value of attribute used_at

Returns:

  • (Object)

    the current value of used_at



5
6
7
# File 'lib/zabbirc/id_shortener.rb', line 5

def used_at
  @used_at
end

Instance Method Details

#touchObject



6
7
8
# File 'lib/zabbirc/id_shortener.rb', line 6

def touch
  self.used_at = Time.now
end