Sha256: 9dfb0b62cac07fc39b95f2ad28b101c3de21b4a65fcec8be8047d6bd4e713d53
Contents?: true
Size: 768 Bytes
Versions: 3
Compression:
Stored size: 768 Bytes
Contents
# frozen_string_literal: true class GoalAchievement attr_accessor :name, :achieved_at, :properties def initialize(name = nil, achieved_at = nil, properties = nil) @name = name @achieved_at = achieved_at @properties = properties end def ==(o) return true if self.object_id == o.object_id return false if o.nil? || self.class != o.class that = o @name == that.name && @achieved_at == that.achieved_at && @properties == that.properties end def hash_code { name: @name, achieved_at: @achieved_at, properties: @properties } end def to_s "GoalAchievement{" + "name='" + @name + "'" + ", achieved_at='" + @achieved_at + "'" + ", properties='" + @properties.inspect + "'" + "}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
absmartly-sdk-1.0.6 | lib/json/goal_achievement.rb |
absmartly-sdk-1.0.5 | lib/json/goal_achievement.rb |
absmartly-sdk-0.1.2 | lib/json/goal_achievement.rb |