Class: Lara::Models::Glossary

Inherits:
Base
  • Object
show all
Defined in:
lib/lara/models/glossaries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

parse_time

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_atObject (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

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/lara/models/glossaries.rb', line 8

def id
  @id
end

#is_personalObject (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

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/lara/models/glossaries.rb', line 8

def name
  @name
end

#owner_idObject (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_atObject (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_atObject (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