Class: Basecamp::Types::QuestionReminder

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

Overview

QuestionReminder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ QuestionReminder

Returns a new instance of QuestionReminder.



2985
2986
2987
2988
2989
2990
# File 'lib/basecamp/generated/types.rb', line 2985

def initialize(data = {})
  @group_on = data["group_on"]
  @question = parse_type(data["question"], "Question")
  @remind_at = parse_datetime(data["remind_at"])
  @reminder_id = parse_integer(data["reminder_id"])
end

Instance Attribute Details

#group_onObject

Returns the value of attribute group_on.



2983
2984
2985
# File 'lib/basecamp/generated/types.rb', line 2983

def group_on
  @group_on
end

#questionObject

Returns the value of attribute question.



2983
2984
2985
# File 'lib/basecamp/generated/types.rb', line 2983

def question
  @question
end

#remind_atObject

Returns the value of attribute remind_at.



2983
2984
2985
# File 'lib/basecamp/generated/types.rb', line 2983

def remind_at
  @remind_at
end

#reminder_idObject

Returns the value of attribute reminder_id.



2983
2984
2985
# File 'lib/basecamp/generated/types.rb', line 2983

def reminder_id
  @reminder_id
end

Instance Method Details

#to_hObject



2992
2993
2994
2995
2996
2997
2998
2999
# File 'lib/basecamp/generated/types.rb', line 2992

def to_h
  {
    "group_on" => @group_on,
    "question" => @question,
    "remind_at" => @remind_at,
    "reminder_id" => @reminder_id,
  }.compact
end

#to_json(*args) ⇒ Object



3001
3002
3003
# File 'lib/basecamp/generated/types.rb', line 3001

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