Class: AWS::Core::Data::List

Inherits:
Object
  • Object
show all
Includes:
MethodMissingProxy
Defined in:
lib/aws/core/data.rb

Instance Method Summary collapse

Methods included from MethodMissingProxy

#[], #eql?

Constructor Details

#initialize(array) ⇒ List

Returns a new instance of List.

Parameters:

  • array (Array)


203
204
205
# File 'lib/aws/core/data.rb', line 203

def initialize array
  @data = array
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AWS::Core::Data::MethodMissingProxy

Instance Method Details

#inspectString

Returns the inspection string for the wrapped array.

Returns:

  • (String)

    Returns the inspection string for the wrapped array.



209
210
211
# File 'lib/aws/core/data.rb', line 209

def inspect
  @data.inspect
end

#to_aryArray Also known as: to_a

Returns the contents of this Data::List as a raw array.

Returns:

  • (Array)

    Returns the contents of this Data::List as a raw array.



215
216
217
# File 'lib/aws/core/data.rb', line 215

def to_ary
  @data
end