Class: TempmailSdk::ChannelInfo

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: "", name: "", website: "") ⇒ ChannelInfo

Returns a new instance of ChannelInfo.



151
152
153
154
155
# File 'lib/tempmail_sdk/types.rb', line 151

def initialize(channel: "", name: "", website: "")
  @channel = channel
  @name = name
  @website = website
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



149
150
151
# File 'lib/tempmail_sdk/types.rb', line 149

def channel
  @channel
end

#nameObject

Returns the value of attribute name.



149
150
151
# File 'lib/tempmail_sdk/types.rb', line 149

def name
  @name
end

#websiteObject

Returns the value of attribute website.



149
150
151
# File 'lib/tempmail_sdk/types.rb', line 149

def website
  @website
end

Instance Method Details

#to_hObject



157
158
159
# File 'lib/tempmail_sdk/types.rb', line 157

def to_h
  { channel: @channel, name: @name, website: @website }
end