Class: Lara::Models::Glossary
- Defined in:
- lib/lara/models/glossaries.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_personal ⇒ Object
readonly
Returns the value of attribute is_personal.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#owner_id ⇒ Object
readonly
Returns the value of attribute owner_id.
-
#shared_at ⇒ Object
readonly
Returns the value of attribute shared_at.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(id:, name:, owner_id:, created_at: nil, updated_at: nil, shared_at: nil, is_personal: nil, **_kwargs) ⇒ Glossary
constructor
A new instance of Glossary.
Methods inherited from Base
Constructor Details
#initialize(id:, name:, owner_id:, created_at: nil, updated_at: nil, shared_at: nil, is_personal: nil, **_kwargs) ⇒ Glossary
Returns a new instance of Glossary.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/lara/models/glossaries.rb', line 10 def initialize(id:, name:, owner_id:, created_at: nil, updated_at: nil, shared_at: nil, is_personal: nil, **_kwargs) super() @id = id @name = name @owner_id = owner_id @created_at = Base.parse_time(created_at) @updated_at = Base.parse_time(updated_at) @shared_at = Base.parse_time(shared_at) @is_personal = is_personal.nil? ? _kwargs[:isPersonal] : is_personal end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/lara/models/glossaries.rb', line 8 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/lara/models/glossaries.rb', line 8 def id @id end |
#is_personal ⇒ Object (readonly)
Returns the value of attribute is_personal.
8 9 10 |
# File 'lib/lara/models/glossaries.rb', line 8 def is_personal @is_personal end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/lara/models/glossaries.rb', line 8 def name @name end |
#owner_id ⇒ Object (readonly)
Returns the value of attribute owner_id.
8 9 10 |
# File 'lib/lara/models/glossaries.rb', line 8 def owner_id @owner_id end |
#shared_at ⇒ Object (readonly)
Returns the value of attribute shared_at.
8 9 10 |
# File 'lib/lara/models/glossaries.rb', line 8 def shared_at @shared_at end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/lara/models/glossaries.rb', line 8 def updated_at @updated_at end |