Class: EmojiDiffer::Emoji
- Inherits:
-
Struct
- Object
- Struct
- EmojiDiffer::Emoji
- Includes:
- Comparable
- Defined in:
- lib/emoji_differ/emoji.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#picture_link ⇒ Object
Returns the value of attribute picture_link.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/emoji_differ/emoji.rb', line 2 def name @name end |
#picture_link ⇒ Object
Returns the value of attribute picture_link
2 3 4 |
# File 'lib/emoji_differ/emoji.rb', line 2 def picture_link @picture_link end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
2 3 4 |
# File 'lib/emoji_differ/emoji.rb', line 2 def @timestamp end |
Instance Method Details
#<=>(other) ⇒ Object
9 10 11 |
# File 'lib/emoji_differ/emoji.rb', line 9 def <=>(other) name <=> other.name end |
#to_s ⇒ Object
5 6 7 |
# File 'lib/emoji_differ/emoji.rb', line 5 def to_s ":#{name}:" end |