Sha256: 25d43d778d6ad265312f17e180207695780a6d0c4e5f3047b634cad481c86d00

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

require_relative "../base_item"

module Greeve
  module API
    # List of all selectable API endpoints/groups to which an API grants
    # access to.
    #
    # @see https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/api/api_calllist.html
    class CallList < Greeve::BaseItem
      endpoint "api/CallList"

      rowset :call_groups, xpath: "eveapi/result/rowset[@name='callGroups']" do
        attribute :group_id,    xpath: "@groupID",     type: :integer
        attribute :name,        xpath: "@name",        type: :string
        attribute :description, xpath: "@description", type: :string
      end

      rowset :calls, xpath: "eveapi/result/rowset[@name='calls']" do
        attribute :access_mask, xpath: "@accessMask",  type: :integer
        attribute :type,        xpath: "@type",        type: :string
        attribute :name,        xpath: "@name",        type: :string
        attribute :group_id,    xpath: "@groupID",     type: :integer
        attribute :description, xpath: "@description", type: :string
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
greeve-1.0.0 lib/greeve/api/call_list.rb