Class: Rafflesia::ObjectDownloadRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectDownloadRequest
- Defined in:
- lib/rafflesia/objects/object_download_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ allow_network: :allow_network, content_type: :content_type, file_name: :file_name, kind: :kind, max_download_bytes: :max_download_bytes, url: :url }.freeze
Instance Attribute Summary collapse
-
#allow_network ⇒ Object
Returns the value of attribute allow_network.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#max_download_bytes ⇒ Object
Returns the value of attribute max_download_bytes.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectDownloadRequest
constructor
A new instance of ObjectDownloadRequest.
Constructor Details
#initialize(json) ⇒ ObjectDownloadRequest
Returns a new instance of ObjectDownloadRequest.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/objects/object_download_request.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @allow_network = hash[:allow_network] @content_type = hash[:content_type] @file_name = hash[:file_name] @kind = hash[:kind] @max_download_bytes = hash[:max_download_bytes] @url = hash[:url] end |
Instance Attribute Details
#allow_network ⇒ Object
Returns the value of attribute allow_network.
17 18 19 |
# File 'lib/rafflesia/objects/object_download_request.rb', line 17 def allow_network @allow_network end |
#content_type ⇒ Object
Returns the value of attribute content_type.
17 18 19 |
# File 'lib/rafflesia/objects/object_download_request.rb', line 17 def content_type @content_type end |
#file_name ⇒ Object
Returns the value of attribute file_name.
17 18 19 |
# File 'lib/rafflesia/objects/object_download_request.rb', line 17 def file_name @file_name end |
#kind ⇒ Object
Returns the value of attribute kind.
17 18 19 |
# File 'lib/rafflesia/objects/object_download_request.rb', line 17 def kind @kind end |
#max_download_bytes ⇒ Object
Returns the value of attribute max_download_bytes.
17 18 19 |
# File 'lib/rafflesia/objects/object_download_request.rb', line 17 def max_download_bytes @max_download_bytes end |
#url ⇒ Object
Returns the value of attribute url.
17 18 19 |
# File 'lib/rafflesia/objects/object_download_request.rb', line 17 def url @url end |