Class: ContextIO::BodyPart

Inherits:
Object
  • Object
show all
Defined in:
lib/contextio/body_part.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.association_nameObject



5
6
7
# File 'lib/contextio/body_part.rb', line 5

def self.association_name
  :body_part
end

Instance Method Details

#html?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/contextio/body_part.rb', line 39

def html?
  type == 'text/html'
end

#plain_text?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/contextio/body_part.rb', line 43

def plain_text?
  type == 'text/plain'
end