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.



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_urlObject

Returns the value of attribute app_url.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def app_url
  @app_url
end

#approvedObject

Returns the value of attribute approved.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def approved
  @approved
end

#bookmark_urlObject

Returns the value of attribute bookmark_url.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def bookmark_url
  @bookmark_url
end

#bucketObject

Returns the value of attribute bucket.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def bucket
  @bucket
end

#contentObject

Returns the value of attribute content.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def content
  @content
end

#created_atObject

Returns the value of attribute created_at.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def created_at
  @created_at
end

#creatorObject

Returns the value of attribute creator.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def creator
  @creator
end

#idObject

Returns the value of attribute id.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def id
  @id
end

#inherits_statusObject

Returns the value of attribute inherits_status.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def inherits_status
  @inherits_status
end

#parentObject

Returns the value of attribute parent.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def parent
  @parent
end

#statusObject

Returns the value of attribute status.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def status
  @status
end

#titleObject

Returns the value of attribute title.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def title
  @title
end

#typeObject

Returns the value of attribute type.



865
866
867
# File 'lib/basecamp/generated/types.rb', line 865

def type
  @type
end

#updated_atObject

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_clientsObject

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_hObject



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