Class: Rafflesia::ObjectDownloadRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_networkObject

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_typeObject

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_nameObject

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

#kindObject

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_bytesObject

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

#urlObject

Returns the value of attribute url.



17
18
19
# File 'lib/rafflesia/objects/object_download_request.rb', line 17

def url
  @url
end