Sha256: 1c31fd207771183e8bab68ac3fe4e4cae7077d5e4f6f3cd728ccdc11b24c0662

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

Stored size: 448 Bytes

Contents

class Object

  # Returns +true+ if the Object is nil, false or empty. Implementation from ActiveSupport.
  def blank?
    respond_to?(:empty?) ? empty? : !self
  end unless defined? blank?

  # Returns the Object as a SOAP request compliant key.
  def to_soap_key
    to_s
  end

  # Returns the Object as a SOAP request compliant value.
  def to_soap_value
    return to_s unless respond_to? :to_datetime
    to_datetime.to_soap_value
  end

end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
johnreitano-savon-0.7.7.5 lib/savon/core_ext/object.rb
johnreitano-savon-0.7.7.4 lib/savon/core_ext/object.rb
johnreitano-savon-0.7.7.3 lib/savon/core_ext/object.rb
johnreitano-savon-0.7.7.2 lib/savon/core_ext/object.rb
johnreitano-savon-0.7.7.1 lib/savon/core_ext/object.rb
hoopla-savon-0.7.6 lib/savon/core_ext/object.rb
savon-0.7.6 lib/savon/core_ext/object.rb