Class: Nusii::WebhookEndpoint

Inherits:
Resource
  • Object
show all
Extended by:
Crud::Create, Crud::Destroy, Crud::Get, Crud::List
Includes:
Crud::DestroySelf
Defined in:
lib/nusii/webhook_endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Crud::Get

get

Methods included from Crud::List

list

Methods included from Crud::Create

create

Methods included from Crud::Destroy

destroy

Methods included from Crud::DestroySelf

#destroy

Methods inherited from Resource

class_name, #editable_params, #initialize, #save_params

Constructor Details

This class inherits a constructor from Nusii::Resource

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



9
10
11
# File 'lib/nusii/webhook_endpoint.rb', line 9

def events
  @events
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/nusii/webhook_endpoint.rb', line 9

def id
  @id
end

#target_urlObject

Returns the value of attribute target_url.



9
10
11
# File 'lib/nusii/webhook_endpoint.rb', line 9

def target_url
  @target_url
end

Instance Method Details

#saveObject



11
12
13
14
# File 'lib/nusii/webhook_endpoint.rb', line 11

def save
  requester = Nusii::Request.new
  requester.create_call self.class, self
end