Class: ROS::Master::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/ros/master.rb

Overview

ROS parameter

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Parameter) initialize(key, value)

Returns a new instance of Parameter

Parameters:

  • key (String)

    parameter key string

  • value (Object)

    parameter value for key



32
33
34
35
# File 'lib/ros/master.rb', line 32

def initialize(key, value)
  @key = key
  @value = value
end

Instance Attribute Details

- (Object) key

Returns the value of attribute key



36
37
38
# File 'lib/ros/master.rb', line 36

def key
  @key
end

- (Object) value

Returns the value of attribute value



37
38
39
# File 'lib/ros/master.rb', line 37

def value
  @value
end