Class: Cinch::Plugins::LinksTitles::Link

Inherits:
Struct
  • Object
show all
Defined in:
lib/cinch/plugins/links-titles.rb

Overview

Simple struct object for tracking Links.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



16
17
18
# File 'lib/cinch/plugins/links-titles.rb', line 16

def count
  @count
end

#nickObject

Returns the value of attribute nick

Returns:

  • (Object)

    the current value of nick



16
17
18
# File 'lib/cinch/plugins/links-titles.rb', line 16

def nick
  @nick
end

#short_urlObject

Returns the value of attribute short_url

Returns:

  • (Object)

    the current value of short_url



16
17
18
# File 'lib/cinch/plugins/links-titles.rb', line 16

def short_url
  @short_url
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



16
17
18
# File 'lib/cinch/plugins/links-titles.rb', line 16

def time
  @time
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



16
17
18
# File 'lib/cinch/plugins/links-titles.rb', line 16

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



16
17
18
# File 'lib/cinch/plugins/links-titles.rb', line 16

def url
  @url
end

Instance Method Details

#to_yamlObject



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