Class: EveOnline::ESI::Models::Type

Inherits:
Base
  • Object
show all
Defined in:
lib/eve_online/esi/models/type.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EveOnline::ESI::Models::Base

Instance Method Details

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/eve_online/esi/models/type.rb', line 7

def as_json
  {
    capacity: capacity,
    description: description,
    graphic_id: graphic_id,
    group_id: group_id,
    icon_id: icon_id,
    market_group_id: market_group_id,
    mass: mass,
    name: name,
    packaged_volume: packaged_volume,
    portion_size: portion_size,
    published: published,
    radius: radius,
    type_id: type_id,
    volume: volume
  }
end

#capacityObject



26
27
28
# File 'lib/eve_online/esi/models/type.rb', line 26

def capacity
  options["capacity"]
end

#descriptionObject



30
31
32
# File 'lib/eve_online/esi/models/type.rb', line 30

def description
  options["description"]
end

#dogma_attributesObject



82
83
84
# File 'lib/eve_online/esi/models/type.rb', line 82

def dogma_attributes
  @dogma_attributes ||= DogmaAttributes.new(options["dogma_attributes"]).dogma_attributes
end

#dogma_effectsObject



86
87
88
# File 'lib/eve_online/esi/models/type.rb', line 86

def dogma_effects
  @dogma_effects ||= DogmaEffects.new(options["dogma_effects"]).dogma_effects
end

#graphic_idObject



34
35
36
# File 'lib/eve_online/esi/models/type.rb', line 34

def graphic_id
  options["graphic_id"]
end

#group_idObject



38
39
40
# File 'lib/eve_online/esi/models/type.rb', line 38

def group_id
  options["group_id"]
end

#icon_idObject



42
43
44
# File 'lib/eve_online/esi/models/type.rb', line 42

def icon_id
  options["icon_id"]
end

#market_group_idObject



46
47
48
# File 'lib/eve_online/esi/models/type.rb', line 46

def market_group_id
  options["market_group_id"]
end

#massObject



50
51
52
# File 'lib/eve_online/esi/models/type.rb', line 50

def mass
  options["mass"]
end

#nameObject



54
55
56
# File 'lib/eve_online/esi/models/type.rb', line 54

def name
  options["name"]
end

#packaged_volumeObject



58
59
60
# File 'lib/eve_online/esi/models/type.rb', line 58

def packaged_volume
  options["packaged_volume"]
end

#portion_sizeObject



62
63
64
# File 'lib/eve_online/esi/models/type.rb', line 62

def portion_size
  options["portion_size"]
end

#publishedObject



66
67
68
# File 'lib/eve_online/esi/models/type.rb', line 66

def published
  options["published"]
end

#radiusObject



70
71
72
# File 'lib/eve_online/esi/models/type.rb', line 70

def radius
  options["radius"]
end

#type_idObject



74
75
76
# File 'lib/eve_online/esi/models/type.rb', line 74

def type_id
  options["type_id"]
end

#volumeObject



78
79
80
# File 'lib/eve_online/esi/models/type.rb', line 78

def volume
  options["volume"]
end