Class: FFXIVLodestone::Character::SkillList::Skill

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/ffxiv-lodestone.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

#to_hash, #to_json, #to_yaml_properties

Constructor Details

#initialize(job, skill_name, rank, cur_sp, skillup_sp) ⇒ Skill

Returns a new instance of Skill.



105
106
107
108
109
110
111
# File 'lib/ffxiv-lodestone.rb', line 105

def initialize(job,skill_name,rank,cur_sp,skillup_sp)
  @name = job 
  @skill_name = skill_name
  @rank = rank
  @current_skill_points = cur_sp
  @skillpoint_to_next_level = skillup_sp
end

Instance Attribute Details

#current_skill_pointsObject (readonly)

Returns the value of attribute current_skill_points.



104
105
106
# File 'lib/ffxiv-lodestone.rb', line 104

def current_skill_points
  @current_skill_points
end

#nameObject (readonly)

Returns the value of attribute name.



104
105
106
# File 'lib/ffxiv-lodestone.rb', line 104

def name
  @name
end

#rankObject (readonly)

Returns the value of attribute rank.



104
105
106
# File 'lib/ffxiv-lodestone.rb', line 104

def rank
  @rank
end

#skill_nameObject (readonly)

Returns the value of attribute skill_name.



104
105
106
# File 'lib/ffxiv-lodestone.rb', line 104

def skill_name
  @skill_name
end

#skillpoint_to_next_levelObject (readonly)

Returns the value of attribute skillpoint_to_next_level.



104
105
106
# File 'lib/ffxiv-lodestone.rb', line 104

def skillpoint_to_next_level
  @skillpoint_to_next_level
end

Instance Method Details

#serialize_propertiesObject

initalize



113
114
115
# File 'lib/ffxiv-lodestone.rb', line 113

def serialize_properties
  [:name, :skill_name, :rank, :current_skill_points, :skillpoint_to_next_level]
end