Class: Angarium::Client::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/angarium/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body



9
10
11
# File 'lib/angarium/client.rb', line 9

def body
  @body
end

#codeObject

Returns the value of attribute code



9
10
11
# File 'lib/angarium/client.rb', line 9

def code
  @code
end

#durationObject

Returns the value of attribute duration



9
10
11
# File 'lib/angarium/client.rb', line 9

def duration
  @duration
end

#errorObject

Returns the value of attribute error



9
10
11
# File 'lib/angarium/client.rb', line 9

def error
  @error
end

#headersObject

Returns the value of attribute headers



9
10
11
# File 'lib/angarium/client.rb', line 9

def headers
  @headers
end

#successObject

Returns the value of attribute success



9
10
11
# File 'lib/angarium/client.rb', line 9

def success
  @success
end

Instance Method Details

#success?Boolean



10
# File 'lib/angarium/client.rb', line 10

def success? = success