Class: Greeve::API::CallList

Inherits:
BaseItem show all
Defined in:
lib/greeve/api/call_list.rb

Overview

List of all selectable API endpoints/groups to which an API grants access to.

Attributes collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #initialize, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

This class inherits a constructor from Greeve::BaseItem

Instance Method Details

#call_groupsGreeve::Rowset

Parameters:

  • group_id (Integer)
  • name (String)
  • description (String)

Returns:



12
13
14
15
16
# File 'lib/greeve/api/call_list.rb', line 12

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

#callsGreeve::Rowset

Parameters:

  • access_mask (Integer)
  • type (String)
  • name (String)
  • group_id (Integer)
  • description (String)

Returns:



18
19
20
21
22
23
24
# File 'lib/greeve/api/call_list.rb', line 18

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