Class: FMCache::IncompleteInfo
- Inherits:
-
Object
- Object
- FMCache::IncompleteInfo
- Defined in:
- lib/fmcache/incomplete_info.rb
Instance Attribute Summary collapse
-
#field_mask ⇒ Object
readonly
Returns the value of attribute field_mask.
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(ids:, field_mask:) ⇒ IncompleteInfo
constructor
A new instance of IncompleteInfo.
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_mask ⇒ Object (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 |
#ids ⇒ Object (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
16 17 18 |
# File 'lib/fmcache/incomplete_info.rb', line 16 def eql?(other) self == other end |
#hash ⇒ Object
20 21 22 |
# File 'lib/fmcache/incomplete_info.rb', line 20 def hash @ids.hash ^ @field_mask.hash end |