Class: Soundcloud::ArrayResponseWrapper

Inherits:
Array
  • Object
show all
Defined in:
lib/soundcloud/array_response_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



2
3
4
# File 'lib/soundcloud/array_response_wrapper.rb', line 2

def response
  @response
end