Class: Dirigible::Segment
- Inherits:
 - 
      Object
      
        
- Object
 - Dirigible::Segment
 
 
- Defined in:
 - lib/dirigible/segment.rb
 
Overview
Class Method Summary collapse
- 
  
    
      .create(params)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Create a new segment.
 - 
  
    
      .delete(id)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Remove the segment.
 - 
  
    
      .get(id)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch information about a particular segment.
 - 
  
    
      .list  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
List all of the segments for the application.
 - 
  
    
      .update(id, params)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Change the definition of the segment.
 
Class Method Details
.create(params) ⇒ Object
Create a new segment.
      37 38 39  | 
    
      # File 'lib/dirigible/segment.rb', line 37 def self.create(params) Dirigible.post('/segments', params) end  | 
  
.delete(id) ⇒ Object
Remove the segment.
      65 66 67  | 
    
      # File 'lib/dirigible/segment.rb', line 65 def self.delete(id) Dirigible.delete("/segments/#{id}") end  | 
  
.get(id) ⇒ Object
Fetch information about a particular segment.
      19 20 21  | 
    
      # File 'lib/dirigible/segment.rb', line 19 def self.get(id) Dirigible.get("/segments/#{id}") end  | 
  
.list ⇒ Object
List all of the segments for the application.
      9 10 11  | 
    
      # File 'lib/dirigible/segment.rb', line 9 def self.list Dirigible.get('/segments') end  | 
  
.update(id, params) ⇒ Object
Change the definition of the segment.
      55 56 57  | 
    
      # File 'lib/dirigible/segment.rb', line 55 def self.update(id, params) Dirigible.put("/segments/#{id}", params) end  |