Class: Lara::Models::ResourceShareEntry
- Defined in:
- lib/lara/models/shares.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#permissions ⇒ Object
readonly
Returns the value of attribute permissions.
-
#share_name ⇒ Object
readonly
Returns the value of attribute share_name.
-
#shared_at ⇒ Object
readonly
Returns the value of attribute shared_at.
Instance Method Summary collapse
-
#initialize(id:, name:, share_name:, shared_at:, permissions:, **_kwargs) ⇒ ResourceShareEntry
constructor
A new instance of ResourceShareEntry.
Methods inherited from Base
Constructor Details
#initialize(id:, name:, share_name:, shared_at:, permissions:, **_kwargs) ⇒ ResourceShareEntry
Returns a new instance of ResourceShareEntry.
10 11 12 13 14 15 16 17 |
# File 'lib/lara/models/shares.rb', line 10 def initialize(id:, name:, share_name:, shared_at:, permissions:, **_kwargs) super() @id = id @name = name @share_name = share_name @shared_at = Base.parse_time(shared_at) @permissions = end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/lara/models/shares.rb', line 8 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/lara/models/shares.rb', line 8 def name @name end |
#permissions ⇒ Object (readonly)
Returns the value of attribute permissions.
8 9 10 |
# File 'lib/lara/models/shares.rb', line 8 def @permissions end |
#share_name ⇒ Object (readonly)
Returns the value of attribute share_name.
8 9 10 |
# File 'lib/lara/models/shares.rb', line 8 def share_name @share_name end |
#shared_at ⇒ Object (readonly)
Returns the value of attribute shared_at.
8 9 10 |
# File 'lib/lara/models/shares.rb', line 8 def shared_at @shared_at end |