Class: Basecamp::Types::ScheduleAttributes
- Inherits:
-
Object
- Object
- Basecamp::Types::ScheduleAttributes
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
ScheduleAttributes
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ScheduleAttributes
constructor
A new instance of ScheduleAttributes.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ ScheduleAttributes
Returns a new instance of ScheduleAttributes.
3892 3893 3894 3895 |
# File 'lib/basecamp/generated/types.rb', line 3892 def initialize(data = {}) @end_date = data["end_date"] @start_date = data["start_date"] end |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
3890 3891 3892 |
# File 'lib/basecamp/generated/types.rb', line 3890 def end_date @end_date end |
#start_date ⇒ Object
Returns the value of attribute start_date.
3890 3891 3892 |
# File 'lib/basecamp/generated/types.rb', line 3890 def start_date @start_date end |
Instance Method Details
#to_h ⇒ Object
3897 3898 3899 3900 3901 3902 |
# File 'lib/basecamp/generated/types.rb', line 3897 def to_h { "end_date" => @end_date, "start_date" => @start_date, }.compact end |
#to_json(*args) ⇒ Object
3904 3905 3906 |
# File 'lib/basecamp/generated/types.rb', line 3904 def to_json(*args) to_h.to_json(*args) end |