Class: Basecamp::Types::ScheduleAttributes

Inherits:
Object
  • Object
show all
Includes:
TypeHelpers
Defined in:
lib/basecamp/generated/types.rb

Overview

ScheduleAttributes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ ScheduleAttributes

Returns a new instance of ScheduleAttributes.



3351
3352
3353
3354
# File 'lib/basecamp/generated/types.rb', line 3351

def initialize(data = {})
  @end_date = data["end_date"]
  @start_date = data["start_date"]
end

Instance Attribute Details

#end_dateObject

Returns the value of attribute end_date.



3349
3350
3351
# File 'lib/basecamp/generated/types.rb', line 3349

def end_date
  @end_date
end

#start_dateObject

Returns the value of attribute start_date.



3349
3350
3351
# File 'lib/basecamp/generated/types.rb', line 3349

def start_date
  @start_date
end

Instance Method Details

#to_hObject



3356
3357
3358
3359
3360
3361
# File 'lib/basecamp/generated/types.rb', line 3356

def to_h
  {
    "end_date" => @end_date,
    "start_date" => @start_date,
  }.compact
end

#to_json(*args) ⇒ Object



3363
3364
3365
# File 'lib/basecamp/generated/types.rb', line 3363

def to_json(*args)
  to_h.to_json(*args)
end