Class: FFXIVLodestone::Character::SkillList::Skill
- Inherits:
-
Object
- Object
- FFXIVLodestone::Character::SkillList::Skill
- Includes:
- Serializable
- Defined in:
- lib/ffxiv-lodestone.rb
Instance Attribute Summary collapse
-
#current_skill_points ⇒ Object
readonly
Returns the value of attribute current_skill_points.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rank ⇒ Object
readonly
Returns the value of attribute rank.
-
#skill_name ⇒ Object
readonly
Returns the value of attribute skill_name.
-
#skillpoint_to_next_level ⇒ Object
readonly
Returns the value of attribute skillpoint_to_next_level.
Instance Method Summary collapse
-
#initialize(job, skill_name, rank, cur_sp, skillup_sp) ⇒ Skill
constructor
A new instance of Skill.
-
#serialize_properties ⇒ Object
initalize.
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_points ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
104 105 106 |
# File 'lib/ffxiv-lodestone.rb', line 104 def name @name end |
#rank ⇒ Object (readonly)
Returns the value of attribute rank.
104 105 106 |
# File 'lib/ffxiv-lodestone.rb', line 104 def rank @rank end |
#skill_name ⇒ Object (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_level ⇒ Object (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_properties ⇒ Object
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 |