Class: DocomoWebMailer::MailListItem

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

Overview

メールのリストのアイテム

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order, summary, flag) ⇒ MailListItem

Returns a new instance of MailListItem.



333
334
335
# File 'lib/docomo_web_mailer.rb', line 333

def initialize( order, summary, flag )
  @order , @summary, @flag = order, summary, flag
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object

summary に委譲



337
338
339
# File 'lib/docomo_web_mailer.rb', line 337

def method_missing(sym, *args, &block)
  @summary.send sym, *args, &block
end

Instance Attribute Details

#flagObject (readonly)

用途不明



332
333
334
# File 'lib/docomo_web_mailer.rb', line 332

def flag
  @flag
end

#orderObject (readonly)

リスト内での位置( 一番上が1 )



328
329
330
# File 'lib/docomo_web_mailer.rb', line 328

def order
  @order
end

#summaryObject (readonly)

メールのサマリ(Mailsummary)



330
331
332
# File 'lib/docomo_web_mailer.rb', line 330

def summary
  @summary
end