Class: GirlsBar::Selection

Inherits:
Object
  • Object
show all
Defined in:
lib/girls_bar/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, label, link) ⇒ Selection

Returns a new instance of Selection.



71
72
73
74
75
# File 'lib/girls_bar/entry.rb', line 71

def initialize(key, label, link)
  @key   = GirlsBar::Filter.to_id key
  @label = label
  @link  = GirlsBar::Filter.to_id link
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



69
70
71
# File 'lib/girls_bar/entry.rb', line 69

def key
  @key
end

#labelObject (readonly)

Returns the value of attribute label.



69
70
71
# File 'lib/girls_bar/entry.rb', line 69

def label
  @label
end

Returns the value of attribute link.



69
70
71
# File 'lib/girls_bar/entry.rb', line 69

def link
  @link
end