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

Version Path
zaui_zapi-0.3.1 lib/zapi_activity_categories.rb
zaui_zapi-0.3.0 lib/zapi_activity_categories.rb
zaui_zapi-0.2.8 lib/zapi_activity_categories.rb
zaui_zapi-0.2.7 lib/zapi_activity_categories.rb
zaui_zapi-0.2.6 lib/zapi_activity_categories.rb
zaui_zapi-0.2.5 lib/zapi_activity_categories.rb
zaui_zapi-0.2.4 lib/zapi_activity_categories.rb
zaui_zapi-0.2.1 lib/zapi_activity_categories.rb
zaui_zapi-0.1.14 lib/zapi_activity_categories.rb
zaui_zapi-0.1.13 lib/zapi_activity_categories.rb
zaui_zapi-0.1.12 lib/zapi_activity_categories.rb
zaui_zapi-0.1.11 lib/zapi_activity_categories.rb
zaui_zapi-0.1.9 lib/zapi_activity_categories.rb
zaui_zapi-0.1.7 lib/zapi_activity_categories.rb
zaui_zapi-0.1.6 lib/zapi_activity_categories.rb
zaui_zapi-0.1.5 lib/zapi_activity_categories.rb
zaui_zapi-0.1.4 lib/zapi_activity_categories.rb
zaui_zapi-0.1.1 lib/zapi_activity_categories.rb
zaui_zapi-0.1.0 lib/zapi_activity_categories.rb