Class: CTM::Webhook
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#position ⇒ Object
Returns the value of attribute position.
-
#weburl ⇒ Object
Returns the value of attribute weburl.
-
#with_resource_url ⇒ Object
Returns the value of attribute with_resource_url.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data, token = nil) ⇒ Webhook
constructor
A new instance of Webhook.
Methods inherited from Base
Constructor Details
#initialize(data, token = nil) ⇒ Webhook
Returns a new instance of Webhook.
6 7 8 9 10 11 12 |
# File 'lib/ctm/webhook.rb', line 6 def initialize(data, token=nil) super(data, token) @id = data['id'] @weburl = data['weburl'] @with_resource_url = data['with_resource_url'] @position = data['position'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/ctm/webhook.rb', line 3 def id @id end |
#position ⇒ Object
Returns the value of attribute position.
4 5 6 |
# File 'lib/ctm/webhook.rb', line 4 def position @position end |
#weburl ⇒ Object
Returns the value of attribute weburl.
4 5 6 |
# File 'lib/ctm/webhook.rb', line 4 def weburl @weburl end |
#with_resource_url ⇒ Object
Returns the value of attribute with_resource_url.
4 5 6 |
# File 'lib/ctm/webhook.rb', line 4 def with_resource_url @with_resource_url end |