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