class ApiService::SuccessfulResult
Attributes
response[R]
state[R]
Public Class Methods
new(response, state, options = {})
click to toggle source
# File lib/api_service/successful_result.rb, line 5 def initialize(response, state, options = {}) @options = default_options.merge(options) @response = response @state = state end
Public Instance Methods
http_status()
click to toggle source
# File lib/api_service/successful_result.rb, line 11 def http_status @options[:http_status] end
Private Instance Methods
default_options()
click to toggle source
# File lib/api_service/successful_result.rb, line 17 def default_options { http_status: 201 } end