Method: ClientErrorDetail#initialize
- Defined in:
- lib/hyperion/types/client_error_detail.rb
#initialize(code, resource, opts = {}) ⇒ ClientErrorDetail
Returns a new instance of ClientErrorDetail.
10 11 12 13 14 15 16 |
# File 'lib/hyperion/types/client_error_detail.rb', line 10 def initialize(code, resource, opts={}) @code = canonical_code(code) @resource = resource @field = opts[:field] || '' @value = opts[:value] || '' @reason = opts[:reason] || '' end |