Class: AWS::Core::Data::List
- Inherits:
-
Object
- Object
- AWS::Core::Data::List
- Includes:
- MethodMissingProxy
- Defined in:
- lib/aws/core/data.rb
Instance Method Summary collapse
-
#initialize(array) ⇒ List
constructor
A new instance of List.
-
#inspect ⇒ String
Returns the inspection string for the wrapped array.
-
#to_ary ⇒ Array
(also: #to_a)
Returns the contents of this Data::List as a raw array.
Methods included from MethodMissingProxy
Constructor Details
#initialize(array) ⇒ List
Returns a new instance of List.
208 209 210 |
# File 'lib/aws/core/data.rb', line 208 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
#inspect ⇒ String
Returns the inspection string for the wrapped array.
214 215 216 |
# File 'lib/aws/core/data.rb', line 214 def inspect @data.inspect end |
#to_ary ⇒ Array Also known as: to_a
Returns the contents of this Data::List as a raw array.
220 221 222 |
# File 'lib/aws/core/data.rb', line 220 def to_ary @data end |