Class: Swaggable::CheckResponseCode

Inherits:
Object
  • Object
show all
Defined in:
lib/swaggable/check_response_code.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CheckResponseCode

Returns a new instance of CheckResponseCode.



5
6
7
8
# File 'lib/swaggable/check_response_code.rb', line 5

def initialize args
  @endpoint = args.fetch(:endpoint)
  @response = args.fetch(:response)
end

Instance Attribute Details

#endpointObject (readonly)

Returns the value of attribute endpoint.



3
4
5
# File 'lib/swaggable/check_response_code.rb', line 3

def endpoint
  @endpoint
end

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/swaggable/check_response_code.rb', line 3

def response
  @response
end

Class Method Details

.call(*args) ⇒ Object



10
11
12
# File 'lib/swaggable/check_response_code.rb', line 10

def self.call(*args)
  new(*args).send :errors
end