# frozen_string_literal: true module Kentaa module Api module Clients class Segments < Base include Kentaa::Api::Clients::All def list(options = {}) segments = Kentaa::Api::Resources::Segments.new(config, options) segments.load end def get(id, options = {}) segment = Kentaa::Api::Resources::Segment.new(config, options.merge(id: id)) segment.load end end end end end