Class: EveCrest::Response::Opportunities::Group

Inherits:
BaseResponse
  • Object
show all
Defined in:
lib/responses/opportunities/group.rb

Instance Attribute Summary

Attributes inherited from BaseResponse

#data

Instance Method Summary collapse

Methods inherited from BaseResponse

#cached_until, #error_message, #initialize, #raw, #success?

Constructor Details

This class inherits a constructor from EveCrest::BaseResponse

Instance Method Details

#descriptionObject



8
9
10
# File 'lib/responses/opportunities/group.rb', line 8

def description
  data['description']
end

#group_connectionObject

group connections only have one item ever in them ?????



18
19
20
# File 'lib/responses/opportunities/group.rb', line 18

def group_connection
  data['groupConnections'].first['id']
end

#nameObject



5
6
7
# File 'lib/responses/opportunities/group.rb', line 5

def name
  data['name']
end

#tasksObject



11
12
13
14
15
16
# File 'lib/responses/opportunities/group.rb', line 11

def tasks
  _tasks = Array.new
  data['achievementTasks'].each do |t|
    _tasks.push(t['id'])
  end
end