Class: XBee::ATCommands::CommandDescriptor
- Inherits:
-
Object
- Object
- XBee::ATCommands::CommandDescriptor
- Defined in:
- lib/ruxbee/at_commands.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#command_description ⇒ Object
readonly
Returns the value of attribute command_description.
-
#command_name ⇒ Object
readonly
Returns the value of attribute command_name.
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Instance Method Summary collapse
- #has_parameter? ⇒ Boolean
-
#initialize(command, command_name, command_description = nil, parameter = nil) {|_self| ... } ⇒ CommandDescriptor
constructor
A new instance of CommandDescriptor.
Constructor Details
#initialize(command, command_name, command_description = nil, parameter = nil) {|_self| ... } ⇒ CommandDescriptor
Returns a new instance of CommandDescriptor.
12 13 14 15 16 17 18 |
# File 'lib/ruxbee/at_commands.rb', line 12 def initialize (command, command_name, command_description = nil, parameter = nil) @command = command @command_name = command_name @command_description = command_description @parameter = parameter yield self if block_given? end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/ruxbee/at_commands.rb', line 10 def command @command end |
#command_description ⇒ Object (readonly)
Returns the value of attribute command_description.
10 11 12 |
# File 'lib/ruxbee/at_commands.rb', line 10 def command_description @command_description end |
#command_name ⇒ Object (readonly)
Returns the value of attribute command_name.
10 11 12 |
# File 'lib/ruxbee/at_commands.rb', line 10 def command_name @command_name end |
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
10 11 12 |
# File 'lib/ruxbee/at_commands.rb', line 10 def parameter @parameter end |
Instance Method Details
#has_parameter? ⇒ Boolean
20 21 22 |
# File 'lib/ruxbee/at_commands.rb', line 20 def has_parameter? parameter.nil? end |