module AWS::Core::Data::MethodMissingProxy

Public Instance Methods

==(other) click to toggle source
Alias for: eql?
[](index_or_key) click to toggle source
# File lib/aws/core/data.rb, line 72
def [] index_or_key
  Data.cast(@data[index_or_key])
end
clone() click to toggle source
Alias for: dup
dup() click to toggle source
# File lib/aws/core/data.rb, line 87
def dup
  Data.cast(@data.dup)
end
Also aliased as: clone
eql?(other) click to toggle source

@return [Boolean] Returns true if the passed object equals

the wrapped array.
# File lib/aws/core/data.rb, line 78
def eql? other
  if other.is_a?(MethodMissingProxy)
    @data == other._data
  else
    @data == other
  end
end
Also aliased as: ==
id() click to toggle source

@private

# File lib/aws/core/data.rb, line 68
def id
  self[:id] || self.id
end

Protected Instance Methods

_data() click to toggle source
# File lib/aws/core/data.rb, line 105
def _data
  @data
end
method_missing(*args) { |*flatten.map{|v| cast}| ... } click to toggle source
# File lib/aws/core/data.rb, line 94
def method_missing *args, &block
  if block_given?
    return_value = @data.send(*args) do |*values|
      yield(*values.flatten.map{|v| Data.cast(v) })
    end
    Data.cast(return_value)
  else
    Data.cast(@data.send(*args))
  end
end