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



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

def count
  @count
end

#nickObject

Returns the value of attribute nick

Returns:

  • (Object)

    the current value of nick



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

def nick
  @nick
end

#short_urlObject

Returns the value of attribute short_url

Returns:

  • (Object)

    the current value of short_url



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

def short_url
  @short_url
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



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

def time
  @time
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



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

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



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

def url
  @url
end

Instance Method Details

#to_yamlObject



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

def to_yaml
  { nick: nick, title: title, count: count, short_url:  short_url,
    url: url, time: time }
end