Class: TempmailSdk::ChannelSpec

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

Overview

单个渠道的注册规格

generate: 接收 GenerateEmailOptions,返回 EmailInfo 的 Proc get_emails: 接收 (email, token),返回 Array 的 Proc

Instance Attribute Summary collapse

Instance Attribute Details

#channelObject

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



48
49
50
# File 'lib/tempmail_sdk/registry.rb', line 48

def channel
  @channel
end

#generateObject

Returns the value of attribute generate

Returns:

  • (Object)

    the current value of generate



48
49
50
# File 'lib/tempmail_sdk/registry.rb', line 48

def generate
  @generate
end

#get_emailsObject

Returns the value of attribute get_emails

Returns:

  • (Object)

    the current value of get_emails



48
49
50
# File 'lib/tempmail_sdk/registry.rb', line 48

def get_emails
  @get_emails
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



48
49
50
# File 'lib/tempmail_sdk/registry.rb', line 48

def name
  @name
end

#websiteObject

Returns the value of attribute website

Returns:

  • (Object)

    the current value of website



48
49
50
# File 'lib/tempmail_sdk/registry.rb', line 48

def website
  @website
end