Class: PostProxy::WebhookDelivery

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

Constructor Details

#initialize(**attrs) ⇒ WebhookDelivery

Returns a new instance of WebhookDelivery.



165
166
167
168
169
170
# File 'lib/postproxy/types.rb', line 165

def initialize(**attrs)
  @response_status = nil
  super
  @attempted_at = parse_time(@attempted_at)
  @created_at = parse_time(@created_at)
end

Instance Attribute Details

#attempt_numberObject

Returns the value of attribute attempt_number.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def attempt_number
  @attempt_number
end

#attempted_atObject

Returns the value of attribute attempted_at.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def attempted_at
  @attempted_at
end

#created_atObject

Returns the value of attribute created_at.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def created_at
  @created_at
end

#event_idObject

Returns the value of attribute event_id.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def event_id
  @event_id
end

#event_typeObject

Returns the value of attribute event_type.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def event_type
  @event_type
end

#idObject

Returns the value of attribute id.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def id
  @id
end

#response_statusObject

Returns the value of attribute response_status.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def response_status
  @response_status
end

#successObject

Returns the value of attribute success.



162
163
164
# File 'lib/postproxy/types.rb', line 162

def success
  @success
end