class ACTV::Identity
Public Class Methods
new(attrs={})
click to toggle source
Initializes a new object
@param attrs [Hash] @raise [ArgumentError] Error
raised when supplied argument is missing an :id key. @return [ACTV::Base]
Calls superclass method
ACTV::Base::new
# File lib/actv/identity.rb, line 11 def initialize(attrs={}) super raise ArgumentError, 'argument must have an :id key' unless id end
Public Instance Methods
==(other)
click to toggle source
@param other [ACTV::Identity] @return [Boolean]
Calls superclass method
# File lib/actv/identity.rb, line 18 def ==(other) super || attr_equal(:id, other) || attrs_equal(other) end
id()
click to toggle source
@return [Integer]
# File lib/actv/identity.rb, line 23 def id @attrs[:id] end