Class: Soundcloud::ArrayResponseWrapper
- Inherits:
-
Array
- Object
- Array
- Soundcloud::ArrayResponseWrapper
- Defined in:
- lib/soundcloud/array_response_wrapper.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = []) ⇒ ArrayResponseWrapper
constructor
A new instance of ArrayResponseWrapper.
Constructor Details
#initialize(response = []) ⇒ ArrayResponseWrapper
Returns a new instance of ArrayResponseWrapper.
3 4 5 6 7 |
# File 'lib/soundcloud/array_response_wrapper.rb', line 3 def initialize(response=[]) mashes = response.map { |o| Hashie::Mash.new(o) } self.replace(mashes) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
2 3 4 |
# File 'lib/soundcloud/array_response_wrapper.rb', line 2 def response @response end |