Class: Basecamp::Types::UpcomingSchedulePerson
- Inherits:
-
Object
- Object
- Basecamp::Types::UpcomingSchedulePerson
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
UpcomingSchedulePerson
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ UpcomingSchedulePerson
constructor
A new instance of UpcomingSchedulePerson.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ UpcomingSchedulePerson
Returns a new instance of UpcomingSchedulePerson.
4968 4969 4970 4971 4972 |
# File 'lib/basecamp/generated/types.rb', line 4968 def initialize(data = {}) @avatar_url = data["avatar_url"] @id = parse_integer(data["id"]) @name = data["name"] end |
Instance Attribute Details
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
4961 4962 4963 |
# File 'lib/basecamp/generated/types.rb', line 4961 def avatar_url @avatar_url end |
#id ⇒ Object
Returns the value of attribute id.
4961 4962 4963 |
# File 'lib/basecamp/generated/types.rb', line 4961 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4961 4962 4963 |
# File 'lib/basecamp/generated/types.rb', line 4961 def name @name end |
Class Method Details
.required_fields ⇒ Array<Symbol>
4964 4965 4966 |
# File 'lib/basecamp/generated/types.rb', line 4964 def self.required_fields %i[avatar_url id name].freeze end |
Instance Method Details
#to_h ⇒ Object
4974 4975 4976 4977 4978 4979 4980 |
# File 'lib/basecamp/generated/types.rb', line 4974 def to_h { "avatar_url" => @avatar_url, "id" => @id, "name" => @name, }.compact end |
#to_json(*args) ⇒ Object
4982 4983 4984 |
# File 'lib/basecamp/generated/types.rb', line 4982 def to_json(*args) to_h.to_json(*args) end |