Class: MenuItem

Inherits:
Object
  • Object
show all
Defined in:
lib/bunch/url_generator.rb

Overview

Single menu item

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, title, value) ⇒ MenuItem

Returns a new instance of MenuItem.



133
134
135
136
137
# File 'lib/bunch/url_generator.rb', line 133

def initialize(id, title, value)
  @id = id
  @title = title
  @value = value
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



131
132
133
# File 'lib/bunch/url_generator.rb', line 131

def id
  @id
end

#titleObject

Returns the value of attribute title.



131
132
133
# File 'lib/bunch/url_generator.rb', line 131

def title
  @title
end

#valueObject

Returns the value of attribute value.



131
132
133
# File 'lib/bunch/url_generator.rb', line 131

def value
  @value
end