Class: Multipart

Inherits:
Struct
  • Object
show all
Defined in:
lib/hyperion/types/multipart.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



1
2
3
# File 'lib/hyperion/types/multipart.rb', line 1

def body
  @body
end

Class Method Details

.content_typeObject



6
7
8
# File 'lib/hyperion/types/multipart.rb', line 6

def self.content_type
  'multipart/form-data'
end

.formatObject



2
3
4
# File 'lib/hyperion/types/multipart.rb', line 2

def self.format
  :multipart
end