Method: Congo::Grip::Attachment#initialize

Defined in:
lib/congo/grip/attachment.rb

#initialize(attrs = {}) ⇒ Attachment

Returns a new instance of Attachment.



7
8
9
10
11
12
13
# File 'lib/congo/grip/attachment.rb', line 7

def initialize(attrs = {})
  @name = attrs[:name]
  @path = attrs[:path]
  @content_type = attrs[:content_type]
  @size = attrs[:size]
  @body = attrs[:body]
end