Class: Messages::ButtonClass

Inherits:
Object
  • Object
show all
Defined in:
lib/yellowant/message/button_class.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeButtonClass

Returns a new instance of ButtonClass.



5
6
7
8
9
10
# File 'lib/yellowant/message/button_class.rb', line 5

def initialize
  @value = ''
  @name = ''
  @text = ''
  @command = {}
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



4
5
6
# File 'lib/yellowant/message/button_class.rb', line 4

def command
  @command
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/yellowant/message/button_class.rb', line 4

def name
  @name
end

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/yellowant/message/button_class.rb', line 4

def text
  @text
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/yellowant/message/button_class.rb', line 4

def value
  @value
end

Instance Method Details

#get_dictObject



12
13
14
# File 'lib/yellowant/message/button_class.rb', line 12

def get_dict
  {"value"=> @value, "name"=> @name, "text"=>@text, "command" => @command}
end