Class: Basecamp::Types::ClientApprovalResponse
- Inherits:
-
Object
- Object
- Basecamp::Types::ClientApprovalResponse
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
ClientApprovalResponse
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#approved ⇒ Object
Returns the value of attribute approved.
-
#bookmark_url ⇒ Object
Returns the value of attribute bookmark_url.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#content ⇒ Object
Returns the value of attribute content.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#visible_to_clients ⇒ Object
Returns the value of attribute visible_to_clients.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ClientApprovalResponse
constructor
A new instance of ClientApprovalResponse.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ ClientApprovalResponse
Returns a new instance of ClientApprovalResponse.
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 |
# File 'lib/basecamp/generated/types.rb', line 867 def initialize(data = {}) @app_url = data["app_url"] @approved = parse_boolean(data["approved"]) @bookmark_url = data["bookmark_url"] @bucket = parse_type(data["bucket"], "RecordingBucket") @content = data["content"] @created_at = parse_datetime(data["created_at"]) @creator = parse_type(data["creator"], "Person") @id = parse_integer(data["id"]) @inherits_status = parse_boolean(data["inherits_status"]) @parent = parse_type(data["parent"], "RecordingParent") @status = data["status"] @title = data["title"] @type = data["type"] @updated_at = parse_datetime(data["updated_at"]) @visible_to_clients = parse_boolean(data["visible_to_clients"]) end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def app_url @app_url end |
#approved ⇒ Object
Returns the value of attribute approved.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def approved @approved end |
#bookmark_url ⇒ Object
Returns the value of attribute bookmark_url.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def bookmark_url @bookmark_url end |
#bucket ⇒ Object
Returns the value of attribute bucket.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def bucket @bucket end |
#content ⇒ Object
Returns the value of attribute content.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def content @content end |
#created_at ⇒ Object
Returns the value of attribute created_at.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def creator @creator end |
#id ⇒ Object
Returns the value of attribute id.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def id @id end |
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def inherits_status @inherits_status end |
#parent ⇒ Object
Returns the value of attribute parent.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def parent @parent end |
#status ⇒ Object
Returns the value of attribute status.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def status @status end |
#title ⇒ Object
Returns the value of attribute title.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def updated_at @updated_at end |
#visible_to_clients ⇒ Object
Returns the value of attribute visible_to_clients.
865 866 867 |
# File 'lib/basecamp/generated/types.rb', line 865 def visible_to_clients @visible_to_clients end |
Instance Method Details
#to_h ⇒ Object
885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'lib/basecamp/generated/types.rb', line 885 def to_h { "app_url" => @app_url, "approved" => @approved, "bookmark_url" => @bookmark_url, "bucket" => @bucket, "content" => @content, "created_at" => @created_at, "creator" => @creator, "id" => @id, "inherits_status" => @inherits_status, "parent" => @parent, "status" => @status, "title" => @title, "type" => @type, "updated_at" => @updated_at, "visible_to_clients" => @visible_to_clients, }.compact end |
#to_json(*args) ⇒ Object
905 906 907 |
# File 'lib/basecamp/generated/types.rb', line 905 def to_json(*args) to_h.to_json(*args) end |