Class: Cinch::Plugins::LinksTitles::Link
- Inherits:
-
Struct
- Object
- Struct
- Cinch::Plugins::LinksTitles::Link
- Defined in:
- lib/cinch/plugins/links-titles.rb
Overview
Simple struct object for tracking Links.
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#nick ⇒ Object
Returns the value of attribute nick.
-
#short_url ⇒ Object
Returns the value of attribute short_url.
-
#time ⇒ Object
Returns the value of attribute time.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count
16 17 18 |
# File 'lib/cinch/plugins/links-titles.rb', line 16 def count @count end |
#nick ⇒ Object
Returns the value of attribute nick
16 17 18 |
# File 'lib/cinch/plugins/links-titles.rb', line 16 def nick @nick end |
#short_url ⇒ Object
Returns the value of attribute short_url
16 17 18 |
# File 'lib/cinch/plugins/links-titles.rb', line 16 def short_url @short_url end |
#time ⇒ Object
Returns the value of attribute time
16 17 18 |
# File 'lib/cinch/plugins/links-titles.rb', line 16 def time @time end |
#title ⇒ Object
Returns the value of attribute title
16 17 18 |
# File 'lib/cinch/plugins/links-titles.rb', line 16 def title @title end |
#url ⇒ Object
Returns the value of attribute url
16 17 18 |
# File 'lib/cinch/plugins/links-titles.rb', line 16 def url @url end |
Instance Method Details
#to_yaml ⇒ Object
17 18 19 20 |
# File 'lib/cinch/plugins/links-titles.rb', line 17 def to_yaml { nick: nick, title: title, count: count, short_url: short_url, url: url, time: time } end |