Sha256: e2a7d925ff0b944084db491e6cdb1d93b3dce8a6320e9753bc9646271170e431
Contents?: true
Size: 605 Bytes
Versions: 3
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true class Attribute attr_accessor :name, :value, :set_at def initialize(name = nil, value = nil, set_at = nil) @name = name @value = value @set_at = set_at end def ==(o) return true if self.object_id == o.object_id return false if o.nil? || self.class != o.class @name == o.name && @value == o.value && @set_at == o.set_at end def hash_code { name: @name, value: @value, set_at: @set_at } end def to_s "Attribute{" + "name='" + @name + "'" + ", value=" + @value + ", setAt=" + @set_at + "}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
absmartly-sdk-1.0.6 | lib/json/attribute.rb |
absmartly-sdk-1.0.5 | lib/json/attribute.rb |
absmartly-sdk-0.1.2 | lib/json/attribute.rb |