Class: EveCrest::Bloodline
- Inherits:
-
Object
- Object
- EveCrest::Bloodline
- Defined in:
- lib/bloodline.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ Bloodline
constructor
A new instance of Bloodline.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/bloodline.rb', line 3 def description @description end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
3 4 5 |
# File 'lib/bloodline.rb', line 3 def icon @icon end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/bloodline.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/bloodline.rb', line 3 def name @name end |