class Totvs::PasswordVault::Response
Attributes
body[R]
@!attribute body
@return [String]
content_type[R]
@!attribute content_type
@return [String]
status_code[R]
@!attribute status_code
@return [Integer]
Public Class Methods
new(status_code:, body:, content_type:)
click to toggle source
@param status_code
[Integer] the status code @param body [String] @param content_type
# File lib/totvs/password_vault/response.rb, line 19 def initialize(status_code:, body:, content_type:) @status_code = status_code @body = body @content_type = content_type end
Public Instance Methods
success?()
click to toggle source
@return [Boolean]
# File lib/totvs/password_vault/response.rb, line 26 def success? status_code >= 200 && status_code < 300 end