Class: PostProxy::Webhook
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#events ⇒ Object
Returns the value of attribute events.
-
#id ⇒ Object
Returns the value of attribute id.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Webhook
constructor
A new instance of Webhook.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ Webhook
Returns a new instance of Webhook.
144 145 146 147 148 149 150 151 |
# File 'lib/postproxy/types.rb', line 144 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_at ⇒ Object
Returns the value of attribute created_at.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def description @description end |
#enabled ⇒ Object
Returns the value of attribute enabled.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def enabled @enabled end |
#events ⇒ Object
Returns the value of attribute events.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def events @events end |
#id ⇒ Object
Returns the value of attribute id.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def id @id end |
#secret ⇒ Object
Returns the value of attribute secret.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def secret @secret end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
141 142 143 |
# File 'lib/postproxy/types.rb', line 141 def url @url end |