Class: RediSet::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/redi_set/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ Attribute

Returns a new instance of Attribute.



5
6
7
# File 'lib/redi_set/attribute.rb', line 5

def initialize(name:)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/redi_set/attribute.rb', line 3

def name
  @name
end