Sha256: db9aa8b32f478e4dabe0a71edef8ca7e1594eda5fb98d93aae7e07832e5ceb6f

Contents?: true

Size: 674 Bytes

Versions: 41

Compression:

Stored size: 674 Bytes

Contents

class Flickr::Test
  def initialize(flickr)
    @flickr = flickr
  end
  
  # A testing method which checks if the caller is logged in then returns their username.
  # 
  def login
    rsp = @flickr.send_request('flickr.test.login')
    rsp.user.username.to_s
  end
  
  # A testing method which echo's all parameters back in the response.
  # 
  # pass any number of options as a hash and it will be returned
  # 
  def echo(options = {})
    rsp = @flickr.send_request('flickr.test.echo', options)
    
    options
  end
  
  # Null test
  # 
  # Returns true unless there is an error
  # 
  def null
     rsp = @flickr.send_request('flickr.test.null')
     true
  end
end

Version data entries

41 entries across 41 versions & 12 rubygems

Version Path
flickr_fu-0.3.4 lib/flickr/test.rb
flickr_fu-0.3.3 lib/flickr/test.rb
ayn-flickr_fu-0.3.5 lib/flickr/test.rb
ayn-flickr_fu-0.3.6 lib/flickr/test.rb
ayn-flickr_fu-0.3.7 lib/flickr/test.rb
ayn-flickr_fu-0.3.9 lib/flickr/test.rb
commonthread-flickr_fu-0.1.6 lib/flickr/test.rb
commonthread-flickr_fu-0.2.0 lib/flickr/test.rb
commonthread-flickr_fu-0.2.1 lib/flickr/test.rb
commonthread-flickr_fu-0.2.2 lib/flickr/test.rb
commonthread-flickr_fu-0.3.0 lib/flickr/test.rb
maciej-flickr_fu-0.3.0 lib/flickr/test.rb
rmm5t-flickr_fu-0.3.1 lib/flickr/test.rb
rschenk-flickr_fu-0.3.2 lib/flickr/test.rb
thewebfellas-flickr_fu-0.1.6 lib/flickr/test.rb
fotonauts-flickr_fu-0.3.13 lib/flickr/test.rb
fotonauts-flickr_fu-0.3.11 lib/flickr/test.rb
fotonauts-flickr_fu-0.3.10 lib/flickr/test.rb
fotonauts-flickr_fu-0.3.9 lib/flickr/test.rb
fotonauts-flickr_fu-0.3.8 lib/flickr/test.rb