Sha256: b36ae234481865f28f71358640c9edd6b285075c656f63b36895133cb2871bc3
Contents?: true
Size: 532 Bytes
Versions: 19
Compression:
Stored size: 532 Bytes
Contents
class ZapiActivityCategories attr_reader :response, :zapi, :generate_xml, :session def initialize session:, zapi: nil, xml_generator: nil @zapi = zapi || Zapi.new() @generate_xml = xml_generator || ZapiXML.new(session: session) @session = session end def index user_id: session.user_id, api_token: session.api_token categories_xml = generate_xml.get_activity_categories @response = zapi.request(xml: categories_xml) end def to_a # convert received categoires to enumberable array end end
Version data entries
19 entries across 19 versions & 1 rubygems