Method: WSDSL::Params#float

Defined in:
lib/params.rb

#float(name, options = {}) ⇒ Arrays<WSDSL::Params::Rule>

Defines a new float param and add it to the required or optional list

Examples:

Defining a string service param named type which has various options.

service.param.string  :type, :in => LeaderboardType.names, :default => LeaderboardType::LIFETIME

Parameters:

  • name (String)

    The name of the param

  • options (Hash) (defaults to: {})

    A hash representing the param settings

Returns:

  • (Arrays<WSDSL::Params::Rule>)

    List of optional or required param rules depending on the new param rule type

Since:

  • 0.0.3



150
151
152
# File 'lib/params.rb', line 150

def float(name, options={})
  param(:float, name, options)
end