Class: Sightstone::Rune

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

Overview

Class to represent a rune

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Rune

Returns a new instance of Rune.



49
50
51
52
53
54
# File 'lib/sightstone/runebook.rb', line 49

def initialize(data)
  @id = data['id']
  @description = data['description']
  @name = data['name']
  @tier = data['tier']
end

Instance Attribute Details

#descriptionString

description

Returns:

  • (String)

    the current value of description



46
47
48
# File 'lib/sightstone/runebook.rb', line 46

def description
  @description
end

#idNumeric

ID of the rune

Returns:

  • (Numeric)

    the current value of id



46
47
48
# File 'lib/sightstone/runebook.rb', line 46

def id
  @id
end

#nameString

name of the rune

Returns:

  • (String)

    the current value of name



46
47
48
# File 'lib/sightstone/runebook.rb', line 46

def name
  @name
end

#tierNumeric

rune tier (1,2,3)

Returns:

  • (Numeric)

    the current value of tier



46
47
48
# File 'lib/sightstone/runebook.rb', line 46

def tier
  @tier
end