Class: LazyRecords::Keyword

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, encrypt = false) ⇒ Keyword

Returns a new instance of Keyword.



11
12
13
14
# File 'lib/keyword.rb', line 11

def initialize(name, encrypt=false)
  @name = name
  @encrypt = encrypt
end

Instance Attribute Details

#encryptObject (readonly)

Returns the value of attribute encrypt.



9
10
11
# File 'lib/keyword.rb', line 9

def encrypt
  @encrypt
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/keyword.rb', line 9

def name
  @name
end