Class: Fizzy::Types::WebhookDeliveryResponse

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



1205
1206
1207
# File 'lib/fizzy/generated/types.rb', line 1205

def code
  @code
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



1205
1206
1207
# File 'lib/fizzy/generated/types.rb', line 1205

def error
  @error
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1207
1208
1209
1210
1211
1212
# File 'lib/fizzy/generated/types.rb', line 1207

def self.from_json(data)
  new(
    code: data["code"],
    error: data["error"]
  )
end