Class: LazyRecords::Keyword
- Inherits:
-
Object
- Object
- LazyRecords::Keyword
- Defined in:
- lib/keyword.rb
Instance Attribute Summary collapse
-
#encrypt ⇒ Object
readonly
Returns the value of attribute encrypt.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, encrypt = false) ⇒ Keyword
constructor
A new instance of Keyword.
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
#encrypt ⇒ Object (readonly)
Returns the value of attribute encrypt.
9 10 11 |
# File 'lib/keyword.rb', line 9 def encrypt @encrypt end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/keyword.rb', line 9 def name @name end |