Method: IMGSrc::API#login

Defined in:
lib/imgsrc.rb

#loginObject

Login and fetch user info

Raises:



108
109
110
111
112
113
114
115
116
# File 'lib/imgsrc.rb', line 108

def 
    raise LoginError, 'already logined' if @storage
    begin
        parse_info(self.class.call_get('cli/info.php', @Login, :nocache))
    rescue InfoError => x
        raise LoginError, x.message
    end
    self
end