Method: WSDSL::Response::Element#boolean

Defined in:
lib/response.rb

#boolean(name = nil, opts = {}) ⇒ Object

Shortcut to create a string attribute

Parameters:

  • name (Symbol, String) (defaults to: nil)

    the name of the attribute.

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

    the attribute options.

Since:

  • 0.0.3



324
325
326
# File 'lib/response.rb', line 324

def boolean(name=nil, opts={})
  attribute({name => :boolean}, opts)
end