class Riffer::Rig::Stores::SkillEntry
Attributes
recorded_at
[R]
String?
skill
[R]
String
@dynamic skill, recorded_at
Public Class Methods
(Hash[Symbol, untyped] hash) → ::Riffer::Rig::Stores::SkillEntry?
Source
# File lib/riffer/rig/stores/skill_entry.rb, line 16 def self.from_hash(hash) skill = hash[:skill] return nil unless skill.is_a?(String) new(skill: skill, recorded_at: Riffer::Rig::Stores::Timestamp.normalize(hash[:recorded_at])) end
@rbs hash: Hash[Symbol, untyped] @rbs return: ::Riffer::Rig::Stores::SkillEntry?
(skill: String, ?recorded_at: String?) → void
Source
# File lib/riffer/rig/stores/skill_entry.rb, line 26 def initialize(skill:, recorded_at: nil) @skill = skill @recorded_at = recorded_at freeze end
@rbs skill: String @rbs recorded_at: String? @rbs return: void