Class: Rune

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Rune) initialize(data)

Returns a new instance of Rune



31
32
33
34
35
36
# File 'lib/sightstone/runebook.rb', line 31

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

Instance Attribute Details

- (Object) description

Returns the value of attribute description



29
30
31
# File 'lib/sightstone/runebook.rb', line 29

def description
  @description
end

- (Object) id

Returns the value of attribute id



29
30
31
# File 'lib/sightstone/runebook.rb', line 29

def id
  @id
end

- (Object) name

Returns the value of attribute name



29
30
31
# File 'lib/sightstone/runebook.rb', line 29

def name
  @name
end

- (Object) tier

Returns the value of attribute tier



29
30
31
# File 'lib/sightstone/runebook.rb', line 29

def tier
  @tier
end