Class: TempmailSdk::ChannelInfo
- Inherits:
-
Object
- Object
- TempmailSdk::ChannelInfo
- Defined in:
- lib/tempmail_sdk/types.rb
Overview
渠道信息
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#name ⇒ Object
Returns the value of attribute name.
-
#website ⇒ Object
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize(channel: "", name: "", website: "") ⇒ ChannelInfo
constructor
A new instance of ChannelInfo.
- #to_h ⇒ Object
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
#channel ⇒ Object
Returns the value of attribute channel.
149 150 151 |
# File 'lib/tempmail_sdk/types.rb', line 149 def channel @channel end |
#name ⇒ Object
Returns the value of attribute name.
149 150 151 |
# File 'lib/tempmail_sdk/types.rb', line 149 def name @name end |
#website ⇒ Object
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_h ⇒ Object
157 158 159 |
# File 'lib/tempmail_sdk/types.rb', line 157 def to_h { channel: @channel, name: @name, website: @website } end |