Class: Timebox::TimeboxStruct

Inherits:
Struct
  • Object
show all
Defined in:
app/models/concerns/timebox.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id


14
15
16
# File 'app/models/concerns/timebox.rb', line 14

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


14
15
16
# File 'app/models/concerns/timebox.rb', line 14

def name
  @name
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title


14
15
16
# File 'app/models/concerns/timebox.rb', line 14

def title
  @title
end

Instance Method Details

#serializable_hash(_opts = {}) ⇒ Object

Ensure these models match the interface required for exporting


16
17
18
# File 'app/models/concerns/timebox.rb', line 16

def serializable_hash(_opts = {})
  { title: title, name: name, id: id }
end