Class: Bianchi::USSD::Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/bianchi/ussd/menu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Menu

Returns a new instance of Menu.



8
9
10
11
# File 'lib/bianchi/ussd/menu.rb', line 8

def initialize(name, options = {})
  @name = name.to_s
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/bianchi/ussd/menu.rb', line 6

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/bianchi/ussd/menu.rb', line 6

def options
  @options
end