Class: Basecamp::Types::ClientApprovalResponse

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

Overview

ClientApprovalResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ ClientApprovalResponse

Returns a new instance of ClientApprovalResponse.



921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
# File 'lib/basecamp/generated/types.rb', line 921

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_urlObject

Returns the value of attribute app_url.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def app_url
  @app_url
end

#approvedObject

Returns the value of attribute approved.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def approved
  @approved
end

#bookmark_urlObject

Returns the value of attribute bookmark_url.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def bookmark_url
  @bookmark_url
end

#bucketObject

Returns the value of attribute bucket.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def bucket
  @bucket
end

#contentObject

Returns the value of attribute content.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def content
  @content
end

#created_atObject

Returns the value of attribute created_at.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def created_at
  @created_at
end

#creatorObject

Returns the value of attribute creator.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def creator
  @creator
end

#idObject

Returns the value of attribute id.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def id
  @id
end

#inherits_statusObject

Returns the value of attribute inherits_status.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def inherits_status
  @inherits_status
end

#parentObject

Returns the value of attribute parent.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def parent
  @parent
end

#statusObject

Returns the value of attribute status.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def status
  @status
end

#titleObject

Returns the value of attribute title.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def title
  @title
end

#typeObject

Returns the value of attribute type.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def type
  @type
end

#updated_atObject

Returns the value of attribute updated_at.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def updated_at
  @updated_at
end

#visible_to_clientsObject

Returns the value of attribute visible_to_clients.



919
920
921
# File 'lib/basecamp/generated/types.rb', line 919

def visible_to_clients
  @visible_to_clients
end

Instance Method Details

#to_hObject



939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
# File 'lib/basecamp/generated/types.rb', line 939

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



959
960
961
# File 'lib/basecamp/generated/types.rb', line 959

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