Class: MobHttp::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/mobpush/http/result.rb

Constant Summary collapse

ERROR =
500
SUCCESS =
200

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error.



8
9
10
# File 'lib/mobpush/http/result.rb', line 8

def error
  @error
end

#resObject

Returns the value of attribute res.



8
9
10
# File 'lib/mobpush/http/result.rb', line 8

def res
  @res
end

#responseCodeObject

Returns the value of attribute responseCode.



8
9
10
# File 'lib/mobpush/http/result.rb', line 8

def responseCode
  @responseCode
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/mobpush/http/result.rb', line 8

def status
  @status
end

Instance Method Details

#to_sObject



10
11
12
13
14
15
16
# File 'lib/mobpush/http/result.rb', line 10

def to_s
    %{
        status: #{@status},
        error: #{@error},
        res: #{res}
    }
end