Class: FlickRaw::ResponseList

Inherits:
Response
  • Object
show all
Includes:
Enumerable
Defined in:
lib/flickraw.rb

Instance Attribute Summary

Attributes inherited from Response

#flickr_type

Instance Method Summary collapse

Methods inherited from Response

build, #marshal_load, #to_hash, #to_s

Constructor Details

#initialize(h, t, a) ⇒ ResponseList

Returns a new instance of ResponseList.



86
# File 'lib/flickraw.rb', line 86

def initialize(h, t, a); super(h, t); @a = a end

Instance Method Details

#[](k) ⇒ Object



87
# File 'lib/flickraw.rb', line 87

def [](k); k.is_a?(Fixnum) ? @a[k] : super(k) end

#eachObject



88
# File 'lib/flickraw.rb', line 88

def each; @a.each{|e| yield e} end

#inspectObject



90
# File 'lib/flickraw.rb', line 90

def inspect; @a.inspect end

#marshal_dumpObject



92
# File 'lib/flickraw.rb', line 92

def marshal_dump; [@h, @flickr_type, @a] end

#sizeObject



91
# File 'lib/flickraw.rb', line 91

def size; @a.size end

#to_aObject



89
# File 'lib/flickraw.rb', line 89

def to_a; @a end