Class: EveCrest::Bloodline

Inherits:
Object
  • Object
show all
Defined in:
lib/bloodline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Bloodline



4
5
6
7
8
9
# File 'lib/bloodline.rb', line 4

def initialize(json)
  @description = json['description']
  @name = json['name']
  @id = json['id']
  @icon = json['icon']['href']
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/bloodline.rb', line 3

def description
  @description
end

#iconObject (readonly)

Returns the value of attribute icon.



3
4
5
# File 'lib/bloodline.rb', line 3

def icon
  @icon
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/bloodline.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/bloodline.rb', line 3

def name
  @name
end