Class: XIVLodestone::DiscipleList::Disciple

Inherits:
Struct
  • Object
show all
Defined in:
lib/xiv_lodestone/lodestone_character_disciple.rb

Overview

This strct representents a disciple

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_expObject

Returns the value of attribute current_exp

Returns:

  • (Object)

    the current value of current_exp



10
11
12
# File 'lib/xiv_lodestone/lodestone_character_disciple.rb', line 10

def current_exp
  @current_exp
end

#icon_urlObject

Returns the value of attribute icon_url

Returns:

  • (Object)

    the current value of icon_url



10
11
12
# File 'lib/xiv_lodestone/lodestone_character_disciple.rb', line 10

def icon_url
  @icon_url
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



10
11
12
# File 'lib/xiv_lodestone/lodestone_character_disciple.rb', line 10

def level
  @level
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/xiv_lodestone/lodestone_character_disciple.rb', line 10

def name
  @name
end

#total_expObject

Returns the value of attribute total_exp

Returns:

  • (Object)

    the current value of total_exp



10
11
12
# File 'lib/xiv_lodestone/lodestone_character_disciple.rb', line 10

def total_exp
  @total_exp
end

Instance Method Details

#next_levelObject



11
12
13
# File 'lib/xiv_lodestone/lodestone_character_disciple.rb', line 11

def next_level
  total_exp - current_exp
end