Class: Pfm::CommandsMap::CommandSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/iapi-idlc-sdk-pfm/commands_map.rb,
lib/iapi-idlc-sdk-pfm/commands_map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#constant_nameObject

Returns the value of attribute constant_name

Returns:

  • (Object)

    the current value of constant_name



5
6
7
# File 'lib/iapi-idlc-sdk-pfm/commands_map.rb', line 5

def constant_name
  @constant_name
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



5
6
7
# File 'lib/iapi-idlc-sdk-pfm/commands_map.rb', line 5

def description
  @description
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/iapi-idlc-sdk-pfm/commands_map.rb', line 5

def name
  @name
end

#require_pathObject

Returns the value of attribute require_path

Returns:

  • (Object)

    the current value of require_path



5
6
7
# File 'lib/iapi-idlc-sdk-pfm/commands_map.rb', line 5

def require_path
  @require_path
end

Instance Method Details

#instantiateObject



9
10
11
12
13
# File 'lib/iapi-idlc-sdk-pfm/commands_map.rb', line 9

def instantiate
  require require_path
  command_class = Pfm::Command.const_get(constant_name)
  command_class.new
end