Class: Cinc::Client::Command
- Inherits:
-
Object
- Object
- Cinc::Client::Command
- Defined in:
- lib/cinc/client.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, arguments) ⇒ Command
constructor
A new instance of Command.
- #to_json ⇒ Object
Constructor Details
#initialize(name, arguments) ⇒ Command
Returns a new instance of Command.
39 40 41 42 |
# File 'lib/cinc/client.rb', line 39 def initialize(name, arguments) @name = name @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
37 38 39 |
# File 'lib/cinc/client.rb', line 37 def arguments @arguments end |
#name ⇒ Object
Returns the value of attribute name.
37 38 39 |
# File 'lib/cinc/client.rb', line 37 def name @name end |
Instance Method Details
#to_json ⇒ Object
44 45 46 47 48 49 |
# File 'lib/cinc/client.rb', line 44 def to_json { name: name, arguments: arguments }.to_json end |