Class: Reve::Classes::Research
Overview
A Research object holds information about Agents the Character is doing research with. Attributes
-
agent_id ( Fixnum ) - ID of the Agent
-
skill_type_id ( Fixnum ) - Skill used for research (not the ID of the core received)
-
research_started_at ( Time ) - Date the Character began research with the Agent
-
points_per_day ( Float ) - Number of points generated per day
-
remainder_points ( Float ) - Number of points remaining since last datacore purchase andor points_per_day update.
See Also: Character, Skill, Reve::API#research_stats
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
readonly
Returns the value of attribute agent_id.
-
#points_per_day ⇒ Object
readonly
Returns the value of attribute points_per_day.
-
#remainder_points ⇒ Object
readonly
Returns the value of attribute remainder_points.
-
#research_started_at ⇒ Object
readonly
Returns the value of attribute research_started_at.
-
#skill_type_id ⇒ Object
readonly
Returns the value of attribute skill_type_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Research
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ Research
:nodoc:
301 302 303 304 305 306 307 |
# File 'lib/reve/classes.rb', line 301 def initialize(elem) #:nodoc: @agent_id = elem['agentID'].to_i @skill_type_id = elem['skillTypeID'].to_i @research_started_at = elem['researchStartDate'].to_time @points_per_day = elem['pointsPerDay'].to_f @remainder_points = elem['remainderPoints'].to_f end |
Instance Attribute Details
#agent_id ⇒ Object (readonly)
Returns the value of attribute agent_id.
300 301 302 |
# File 'lib/reve/classes.rb', line 300 def agent_id @agent_id end |
#points_per_day ⇒ Object (readonly)
Returns the value of attribute points_per_day.
300 301 302 |
# File 'lib/reve/classes.rb', line 300 def points_per_day @points_per_day end |
#remainder_points ⇒ Object (readonly)
Returns the value of attribute remainder_points.
300 301 302 |
# File 'lib/reve/classes.rb', line 300 def remainder_points @remainder_points end |
#research_started_at ⇒ Object (readonly)
Returns the value of attribute research_started_at.
300 301 302 |
# File 'lib/reve/classes.rb', line 300 def research_started_at @research_started_at end |
#skill_type_id ⇒ Object (readonly)
Returns the value of attribute skill_type_id.
300 301 302 |
# File 'lib/reve/classes.rb', line 300 def skill_type_id @skill_type_id end |