Class: Messages::ButtonClass
- Inherits:
-
Object
- Object
- Messages::ButtonClass
- Defined in:
- lib/yellowant/message/button_class.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#name ⇒ Object
Returns the value of attribute name.
-
#text ⇒ Object
Returns the value of attribute text.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #get_dict ⇒ Object
-
#initialize ⇒ ButtonClass
constructor
A new instance of ButtonClass.
Constructor Details
#initialize ⇒ ButtonClass
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
#command ⇒ Object
Returns the value of attribute command.
4 5 6 |
# File 'lib/yellowant/message/button_class.rb', line 4 def command @command end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/yellowant/message/button_class.rb', line 4 def name @name end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/yellowant/message/button_class.rb', line 4 def text @text end |
#value ⇒ Object
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_dict ⇒ Object
12 13 14 |
# File 'lib/yellowant/message/button_class.rb', line 12 def get_dict {"value"=> @value, "name"=> @name, "text"=>@text, "command" => @command} end |