Class: ContextIO::BodyPart
- Inherits:
-
Object
- Object
- ContextIO::BodyPart
- Defined in:
- lib/contextio/body_part.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.association_name ⇒ Object
5 6 7 |
# File 'lib/contextio/body_part.rb', line 5 def self.association_name :body_part end |
Instance Method Details
#html? ⇒ Boolean
39 40 41 |
# File 'lib/contextio/body_part.rb', line 39 def html? type == 'text/html' end |
#plain_text? ⇒ Boolean
43 44 45 |
# File 'lib/contextio/body_part.rb', line 43 def plain_text? type == 'text/plain' end |