Class: Java::ComPff::PSTRecipient

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

Instance Method Summary collapse

Instance Method Details

#hash_stringObject



242
243
244
# File 'lib/pst/base.rb', line 242

def hash_string
  Digest::SHA1.hexdigest(human_id)
end

#howObject



246
247
248
249
250
251
252
253
254
# File 'lib/pst/base.rb', line 246

def how
  case getRecipientType
    when Java::ComPff::PSTRecipient::MAPI_BCC then :bcc
    when Java::ComPff::PSTRecipient::MAPI_CC  then :cc
    when Java::ComPff::PSTRecipient::MAPI_TO  then :to
    else
      :to
  end
end

#human_idObject



238
239
240
# File 'lib/pst/base.rb', line 238

def human_id
  pretty_string
end

#orderObject



256
257
258
# File 'lib/pst/base.rb', line 256

def order
  getRecipientOrder
end

#pretty_stringObject



234
235
236
# File 'lib/pst/base.rb', line 234

def pretty_string
  "%s <%s>" % [name, email]
end