Class: Telerivet::Route
Overview
Represents a custom route that can be used to send messages via one or more basic routes (phones).
Custom Routes were formerly referred to simply as “Routes” within Telerivet. API methods, parameters, and properties related to Custom Routes continue to use the term “Route” to maintain backwards compatibility.
Custom routing rules can currently only be configured via Telerivet’s web UI.
Fields:
- id (string, max 34 characters)
* Telerivet's internal ID for the route
* Read-only
- name
* The name of the route
* Updatable via API
- vars (Hash)
* Custom variables stored for this route
* Updatable via API
- project_id
* ID of the project this route belongs to
* Read-only
Instance Method Summary collapse
- #get_base_api_path ⇒ Object
- #id ⇒ Object
- #name ⇒ Object
- #name=(value) ⇒ Object
- #project_id ⇒ Object
-
#save ⇒ Object
Saves any fields or custom variables that have changed for this custom route.
Methods inherited from Entity
#get, #initialize, #load, #set, #set_data, #to_s, #vars
Constructor Details
This class inherits a constructor from Telerivet::Entity
Instance Method Details
#get_base_api_path ⇒ Object
57 58 59 |
# File 'lib/telerivet/route.rb', line 57 def get_base_api_path() "/projects/#{get('project_id')}/routes/#{get('id')}" end |
#id ⇒ Object
41 42 43 |
# File 'lib/telerivet/route.rb', line 41 def id get('id') end |
#name ⇒ Object
45 46 47 |
# File 'lib/telerivet/route.rb', line 45 def name get('name') end |
#name=(value) ⇒ Object
49 50 51 |
# File 'lib/telerivet/route.rb', line 49 def name=(value) set('name', value) end |
#project_id ⇒ Object
53 54 55 |
# File 'lib/telerivet/route.rb', line 53 def project_id get('project_id') end |
#save ⇒ Object
Saves any fields or custom variables that have changed for this custom route.
37 38 39 |
# File 'lib/telerivet/route.rb', line 37 def save() super end |