Class: Kentaa::Api::Clients::Segments

Inherits:
Base
  • Object
show all
Defined in:
lib/kentaa/api/clients/segments.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Kentaa::Api::Clients::Base

Instance Method Details

#all(options = {}) ⇒ Object



7
8
9
10
# File 'lib/kentaa/api/clients/segments.rb', line 7

def all(options = {})
  segments = Kentaa::Api::Resources::Segments.new(config, options)
  segments.all
end

#get(id, options = {}) ⇒ Object



17
18
19
20
# File 'lib/kentaa/api/clients/segments.rb', line 17

def get(id, options = {})
  segment = Kentaa::Api::Resources::Segment.new(config, options.merge(id: id))
  segment.load
end

#list(options = {}) ⇒ Object



12
13
14
15
# File 'lib/kentaa/api/clients/segments.rb', line 12

def list(options = {})
  segments = Kentaa::Api::Resources::Segments.new(config, options)
  segments.load
end