Class: Zabbirc::IdShortener::IdTranslation
- Inherits:
-
Struct
- Object
- Struct
- Zabbirc::IdShortener::IdTranslation
- Defined in:
- lib/zabbirc/id_shortener.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#shorten_id ⇒ Object
Returns the value of attribute shorten_id.
-
#used_at ⇒ Object
Returns the value of attribute used_at.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/zabbirc/id_shortener.rb', line 5 def id @id end |
#shorten_id ⇒ Object
Returns the value of attribute shorten_id
5 6 7 |
# File 'lib/zabbirc/id_shortener.rb', line 5 def shorten_id @shorten_id end |
#used_at ⇒ Object
Returns the value of attribute used_at
5 6 7 |
# File 'lib/zabbirc/id_shortener.rb', line 5 def used_at @used_at end |
Instance Method Details
#touch ⇒ Object
6 7 8 |
# File 'lib/zabbirc/id_shortener.rb', line 6 def touch self.used_at = Time.now end |