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

#initialize(key, value) ⇒ Parameter

Returns a new instance of Parameter.

Parameters:

  • key (String)

    parameter key string

  • value (Object)

    parameter value for key



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

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

Instance Attribute Details

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end