Class: FMCache::IncompleteInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/fmcache/incomplete_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ids:, field_mask:) ⇒ IncompleteInfo

Returns a new instance of IncompleteInfo.



3
4
5
6
# File 'lib/fmcache/incomplete_info.rb', line 3

def initialize(ids:, field_mask:)
  @ids        = ids
  @field_mask = field_mask
end

Instance Attribute Details

#field_maskObject (readonly)

Returns the value of attribute field_mask.



8
9
10
# File 'lib/fmcache/incomplete_info.rb', line 8

def field_mask
  @field_mask
end

#idsObject (readonly)

Returns the value of attribute ids.



8
9
10
# File 'lib/fmcache/incomplete_info.rb', line 8

def ids
  @ids
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
13
14
# File 'lib/fmcache/incomplete_info.rb', line 10

def ==(other)
  self.class == other.class &&
    @ids == other.ids &&
    @field_mask.to_paths == other.field_mask.to_paths
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/fmcache/incomplete_info.rb', line 16

def eql?(other)
  self == other
end

#hashObject



20
21
22
# File 'lib/fmcache/incomplete_info.rb', line 20

def hash
  @ids.hash ^ @field_mask.hash
end