Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/savon/core_ext/object.rb
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Returns
true
if the Object is nil, false or empty. -
#to_soap_value ⇒ Object
(also: #to_soap_value!)
Returns the Object as a SOAP request compliant value.
Instance Method Details
#blank? ⇒ Boolean
Returns true
if the Object is nil, false or empty. Implementation from ActiveSupport.
4 5 6 |
# File 'lib/savon/core_ext/object.rb', line 4 def blank? respond_to?(:empty?) ? empty? : !self end |
#to_soap_value ⇒ Object Also known as: to_soap_value!
Returns the Object as a SOAP request compliant value.
9 10 11 12 |
# File 'lib/savon/core_ext/object.rb', line 9 def to_soap_value return to_s unless respond_to? :to_datetime to_datetime.to_soap_value end |