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



1194
1195
1196
# File 'lib/fizzy/generated/types.rb', line 1194

def code
  @code
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



1194
1195
1196
# File 'lib/fizzy/generated/types.rb', line 1194

def error
  @error
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



1196
1197
1198
1199
1200
1201
# File 'lib/fizzy/generated/types.rb', line 1196

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