Class: Basecamp::Types::LineupMarker
- Inherits:
-
Object
- Object
- Basecamp::Types::LineupMarker
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
LineupMarker
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ LineupMarker
constructor
A new instance of LineupMarker.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ LineupMarker
Returns a new instance of LineupMarker.
1798 1799 1800 1801 1802 1803 1804 |
# File 'lib/basecamp/generated/types.rb', line 1798 def initialize(data = {}) @created_at = parse_datetime(data["created_at"]) @date = data["date"] @id = parse_integer(data["id"]) @name = data["name"] @updated_at = parse_datetime(data["updated_at"]) end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
1791 1792 1793 |
# File 'lib/basecamp/generated/types.rb', line 1791 def created_at @created_at end |
#date ⇒ Object
Returns the value of attribute date.
1791 1792 1793 |
# File 'lib/basecamp/generated/types.rb', line 1791 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
1791 1792 1793 |
# File 'lib/basecamp/generated/types.rb', line 1791 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
1791 1792 1793 |
# File 'lib/basecamp/generated/types.rb', line 1791 def name @name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
1791 1792 1793 |
# File 'lib/basecamp/generated/types.rb', line 1791 def updated_at @updated_at end |
Class Method Details
.required_fields ⇒ Array<Symbol>
1794 1795 1796 |
# File 'lib/basecamp/generated/types.rb', line 1794 def self.required_fields %i[created_at date id name updated_at].freeze end |
Instance Method Details
#to_h ⇒ Object
1806 1807 1808 1809 1810 1811 1812 1813 1814 |
# File 'lib/basecamp/generated/types.rb', line 1806 def to_h { "created_at" => @created_at, "date" => @date, "id" => @id, "name" => @name, "updated_at" => @updated_at, }.compact end |
#to_json(*args) ⇒ Object
1816 1817 1818 |
# File 'lib/basecamp/generated/types.rb', line 1816 def to_json(*args) to_h.to_json(*args) end |