Class: FlickRaw::ResponseList
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
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
|
#each ⇒ Object
88
|
# File 'lib/flickraw.rb', line 88
def each; @a.each{|e| yield e} end
|
#inspect ⇒ Object
90
|
# File 'lib/flickraw.rb', line 90
def inspect; @a.inspect end
|
#marshal_dump ⇒ Object
92
|
# File 'lib/flickraw.rb', line 92
def marshal_dump; [@h, @flickr_type, @a] end
|
#size ⇒ Object
91
|
# File 'lib/flickraw.rb', line 91
def size; @a.size end
|
#to_a ⇒ Object
89
|
# File 'lib/flickraw.rb', line 89
def to_a; @a end
|