Class: DocomoWebMailer::Mailparts

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

Overview

メールの詳細情報。複数のmimeパートを含むデータ

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, header, parts) ⇒ Mailparts

Returns a new instance of Mailparts.



390
391
392
393
# File 'lib/docomo_web_mailer.rb', line 390

def initialize( status , header, parts )
  @status , @header = status, header
  @parts = parts.map{|data| Mimepart.new( *data )}
end

Instance Attribute Details

#headerObject (readonly)

ヘッダ



389
390
391
# File 'lib/docomo_web_mailer.rb', line 389

def header
  @header
end

#partsObject (readonly)

Mimepart の配列



387
388
389
# File 'lib/docomo_web_mailer.rb', line 387

def parts
  @parts
end

#statusObject (readonly)

:ok なら取得成功



385
386
387
# File 'lib/docomo_web_mailer.rb', line 385

def status
  @status
end

Instance Method Details

#[](num) ⇒ Object



394
395
396
# File 'lib/docomo_web_mailer.rb', line 394

def [](num)
  @parts[num]
end