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.
4949 4950 4951 4952 |
# File 'lib/basecamp/generated/types.rb', line 4949 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.
4942 4943 4944 |
# File 'lib/basecamp/generated/types.rb', line 4942 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
4942 4943 4944 |
# File 'lib/basecamp/generated/types.rb', line 4942 def creator @creator end |
Class Method Details
.required_fields ⇒ Array<Symbol>
4945 4946 4947 |
# File 'lib/basecamp/generated/types.rb', line 4945 def self.required_fields %i[created_at creator].freeze end |
Instance Method Details
#to_h ⇒ Object
4954 4955 4956 4957 4958 4959 |
# File 'lib/basecamp/generated/types.rb', line 4954 def to_h { "created_at" => @created_at, "creator" => @creator, }.compact end |
#to_json(*args) ⇒ Object
4961 4962 4963 |
# File 'lib/basecamp/generated/types.rb', line 4961 def to_json(*args) to_h.to_json(*args) end |