Class: Basecamp::Types::UpcomingAssignableCompletion
- Inherits:
-
Object
- Object
- Basecamp::Types::UpcomingAssignableCompletion
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
UpcomingAssignableCompletion
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#creator ⇒ Object
Returns the value of attribute creator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ UpcomingAssignableCompletion
constructor
A new instance of UpcomingAssignableCompletion.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ UpcomingAssignableCompletion
Returns a new instance of UpcomingAssignableCompletion.
4834 4835 4836 4837 |
# File 'lib/basecamp/generated/types.rb', line 4834 def initialize(data = {}) @created_at = parse_datetime(data["created_at"]) @creator = parse_type(data["creator"], "UpcomingSchedulePerson") end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
4827 4828 4829 |
# File 'lib/basecamp/generated/types.rb', line 4827 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
4827 4828 4829 |
# File 'lib/basecamp/generated/types.rb', line 4827 def creator @creator end |
Class Method Details
.required_fields ⇒ Array<Symbol>
4830 4831 4832 |
# File 'lib/basecamp/generated/types.rb', line 4830 def self.required_fields %i[created_at creator].freeze end |
Instance Method Details
#to_h ⇒ Object
4839 4840 4841 4842 4843 4844 |
# File 'lib/basecamp/generated/types.rb', line 4839 def to_h { "created_at" => @created_at, "creator" => @creator, }.compact end |
#to_json(*args) ⇒ Object
4846 4847 4848 |
# File 'lib/basecamp/generated/types.rb', line 4846 def to_json(*args) to_h.to_json(*args) end |