Class: Basecamp::Types::Project
- Inherits:
-
Object
- Object
- Basecamp::Types::Project
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
Project
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#bookmark_url ⇒ Object
Returns the value of attribute bookmark_url.
-
#bookmarked ⇒ Object
Returns the value of attribute bookmarked.
-
#client_company ⇒ Object
Returns the value of attribute client_company.
-
#clients_enabled ⇒ Object
Returns the value of attribute clients_enabled.
-
#clientside ⇒ Object
deprecated
Deprecated.
This shape is deprecated since 2024-01: Use Client Visibility feature instead
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#dock ⇒ Object
Returns the value of attribute dock.
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#purpose ⇒ Object
Returns the value of attribute purpose.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Project
constructor
A new instance of Project.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ Project
Returns a new instance of Project.
2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 |
# File 'lib/basecamp/generated/types.rb', line 2638 def initialize(data = {}) @app_url = data["app_url"] @created_at = parse_datetime(data["created_at"]) @id = parse_integer(data["id"]) @name = data["name"] @status = data["status"] @updated_at = parse_datetime(data["updated_at"]) @url = data["url"] @bookmark_url = data["bookmark_url"] @bookmarked = parse_boolean(data["bookmarked"]) @client_company = parse_type(data["client_company"], "ClientCompany") @clients_enabled = parse_boolean(data["clients_enabled"]) @clientside = parse_type(data["clientside"], "ClientSide") @description = data["description"] @dock = parse_array(data["dock"], "DockItem") @end_date = data["end_date"] @purpose = data["purpose"] @start_date = data["start_date"] end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def app_url @app_url end |
#bookmark_url ⇒ Object
Returns the value of attribute bookmark_url.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def bookmark_url @bookmark_url end |
#bookmarked ⇒ Object
Returns the value of attribute bookmarked.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def bookmarked @bookmarked end |
#client_company ⇒ Object
Returns the value of attribute client_company.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def client_company @client_company end |
#clients_enabled ⇒ Object
Returns the value of attribute clients_enabled.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def clients_enabled @clients_enabled end |
#clientside ⇒ Object
This shape is deprecated since 2024-01: Use Client Visibility feature instead
2631 |
# File 'lib/basecamp/generated/types.rb', line 2631 attr_accessor :app_url, :created_at, :id, :name, :status, :updated_at, :url, :bookmark_url, :bookmarked, :client_company, :clients_enabled, :clientside, :description, :dock, :end_date, :purpose, :start_date |
#created_at ⇒ Object
Returns the value of attribute created_at.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def description @description end |
#dock ⇒ Object
Returns the value of attribute dock.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def dock @dock end |
#end_date ⇒ Object
Returns the value of attribute end_date.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def end_date @end_date end |
#id ⇒ Object
Returns the value of attribute id.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def name @name end |
#purpose ⇒ Object
Returns the value of attribute purpose.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def purpose @purpose end |
#start_date ⇒ Object
Returns the value of attribute start_date.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def start_date @start_date end |
#status ⇒ Object
Returns the value of attribute status.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
2631 2632 2633 |
# File 'lib/basecamp/generated/types.rb', line 2631 def url @url end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2634 2635 2636 |
# File 'lib/basecamp/generated/types.rb', line 2634 def self.required_fields %i[app_url created_at id name status updated_at url].freeze end |
Instance Method Details
#to_h ⇒ Object
2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/basecamp/generated/types.rb', line 2658 def to_h { "app_url" => @app_url, "created_at" => @created_at, "id" => @id, "name" => @name, "status" => @status, "updated_at" => @updated_at, "url" => @url, "bookmark_url" => @bookmark_url, "bookmarked" => @bookmarked, "client_company" => @client_company, "clients_enabled" => @clients_enabled, "clientside" => @clientside, "description" => @description, "dock" => @dock, "end_date" => @end_date, "purpose" => @purpose, "start_date" => @start_date, }.compact end |
#to_json(*args) ⇒ Object
2680 2681 2682 |
# File 'lib/basecamp/generated/types.rb', line 2680 def to_json(*args) to_h.to_json(*args) end |