Class: TempmailSdk::GetEmailsResult

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

Overview

获取邮件列表的结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel: "", email: "", emails: nil, success: true) ⇒ GetEmailsResult

Returns a new instance of GetEmailsResult.



94
95
96
97
98
99
# File 'lib/tempmail_sdk/types.rb', line 94

def initialize(channel: "", email: "", emails: nil, success: true)
  @channel = channel
  @email = email
  @emails = emails || []
  @success = success
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



92
93
94
# File 'lib/tempmail_sdk/types.rb', line 92

def channel
  @channel
end

#emailObject

Returns the value of attribute email.



92
93
94
# File 'lib/tempmail_sdk/types.rb', line 92

def email
  @email
end

#emailsObject

Returns the value of attribute emails.



92
93
94
# File 'lib/tempmail_sdk/types.rb', line 92

def emails
  @emails
end

#successObject

Returns the value of attribute success.



92
93
94
# File 'lib/tempmail_sdk/types.rb', line 92

def success
  @success
end