Class: Basecamp::Types::UploadVersionFile
- Inherits:
-
Object
- Object
- Basecamp::Types::UploadVersionFile
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
UploadVersionFile
Instance Attribute Summary collapse
-
#app_download_url ⇒ Object
Returns the value of attribute app_download_url.
-
#byte_size ⇒ Object
Returns the value of attribute byte_size.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#current ⇒ Object
Returns the value of attribute current.
-
#download_url ⇒ Object
Returns the value of attribute download_url.
-
#filename ⇒ Object
Returns the value of attribute filename.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ UploadVersionFile
constructor
A new instance of UploadVersionFile.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ UploadVersionFile
Returns a new instance of UploadVersionFile.
5117 5118 5119 5120 5121 5122 5123 5124 |
# File 'lib/basecamp/generated/types.rb', line 5117 def initialize(data = {}) @app_download_url = data["app_download_url"] @current = parse_boolean(data["current"]) @download_url = data["download_url"] @filename = data["filename"] @byte_size = parse_integer(data["byte_size"]) @content_type = data["content_type"] end |
Instance Attribute Details
#app_download_url ⇒ Object
Returns the value of attribute app_download_url.
5110 5111 5112 |
# File 'lib/basecamp/generated/types.rb', line 5110 def app_download_url @app_download_url end |
#byte_size ⇒ Object
Returns the value of attribute byte_size.
5110 5111 5112 |
# File 'lib/basecamp/generated/types.rb', line 5110 def byte_size @byte_size end |
#content_type ⇒ Object
Returns the value of attribute content_type.
5110 5111 5112 |
# File 'lib/basecamp/generated/types.rb', line 5110 def content_type @content_type end |
#current ⇒ Object
Returns the value of attribute current.
5110 5111 5112 |
# File 'lib/basecamp/generated/types.rb', line 5110 def current @current end |
#download_url ⇒ Object
Returns the value of attribute download_url.
5110 5111 5112 |
# File 'lib/basecamp/generated/types.rb', line 5110 def download_url @download_url end |
#filename ⇒ Object
Returns the value of attribute filename.
5110 5111 5112 |
# File 'lib/basecamp/generated/types.rb', line 5110 def filename @filename end |
Class Method Details
.required_fields ⇒ Array<Symbol>
5113 5114 5115 |
# File 'lib/basecamp/generated/types.rb', line 5113 def self.required_fields %i[app_download_url current download_url filename].freeze end |
Instance Method Details
#to_h ⇒ Object
5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 |
# File 'lib/basecamp/generated/types.rb', line 5126 def to_h { "app_download_url" => @app_download_url, "current" => @current, "download_url" => @download_url, "filename" => @filename, "byte_size" => @byte_size, "content_type" => @content_type, }.compact end |
#to_json(*args) ⇒ Object
5137 5138 5139 |
# File 'lib/basecamp/generated/types.rb', line 5137 def to_json(*args) to_h.to_json(*args) end |