Class: Timebox::TimeboxStruct
- Inherits:
-
Struct
- Object
- Struct
- Timebox::TimeboxStruct
- Defined in:
- app/models/concerns/timebox.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
-
#serializable_hash(_opts = {}) ⇒ Object
Ensure these models match the interface required for exporting.
- #to_global_id ⇒ Object
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name
11 12 13 |
# File 'app/models/concerns/timebox.rb', line 11 def class_name @class_name end |
#id ⇒ Object
Returns the value of attribute id
11 12 13 |
# File 'app/models/concerns/timebox.rb', line 11 def id @id end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'app/models/concerns/timebox.rb', line 11 def name @name end |
#title ⇒ Object
Returns the value of attribute title
11 12 13 |
# File 'app/models/concerns/timebox.rb', line 11 def title @title end |
Class Method Details
.declarative_policy_class ⇒ Object
17 18 19 |
# File 'app/models/concerns/timebox.rb', line 17 def self.declarative_policy_class "TimeboxPolicy" end |
Instance Method Details
#serializable_hash(_opts = {}) ⇒ Object
Ensure these models match the interface required for exporting
13 14 15 |
# File 'app/models/concerns/timebox.rb', line 13 def serializable_hash(_opts = {}) { title: title, name: name, id: id } end |