Class: PostProxy::Webhook

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) ⇒ Webhook

Returns a new instance of Webhook.



201
202
203
204
205
206
207
208
# File 'lib/postproxy/types.rb', line 201

def initialize(**attrs)
  @events = []
  @description = nil
  @secret = nil
  super
  @created_at = parse_time(@created_at)
  @updated_at = parse_time(@updated_at)
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def description
  @description
end

#enabledObject

Returns the value of attribute enabled.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def enabled
  @enabled
end

#eventsObject

Returns the value of attribute events.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def events
  @events
end

#idObject

Returns the value of attribute id.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def id
  @id
end

#secretObject

Returns the value of attribute secret.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def secret
  @secret
end

#updated_atObject

Returns the value of attribute updated_at.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def updated_at
  @updated_at
end

#urlObject

Returns the value of attribute url.



198
199
200
# File 'lib/postproxy/types.rb', line 198

def url
  @url
end