Class: WebfleetConnect::Actions::Action

Inherits:
Object
  • Object
show all
Includes:
Params::ParamsFactory
Defined in:
lib/webfleet_connect/actions/action.rb

Instance Method Summary collapse

Methods included from Params::ParamsFactory

#build_params

Constructor Details

#initialize(name, args) ⇒ Action

Returns a new instance of Action.



6
7
8
9
# File 'lib/webfleet_connect/actions/action.rb', line 6

def initialize(name, args)
  @name = name
  @params = build_params(args)
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/webfleet_connect/actions/action.rb', line 11

def to_s
  "action=#{name}#{params}"
end