Class: WhatsappSdk::Resource::Email
- Inherits:
-
Object
- Object
- WhatsappSdk::Resource::Email
- Defined in:
- lib/whatsapp_sdk/resource/email.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(email:, type:) ⇒ Email
constructor
A new instance of Email.
- #to_h ⇒ Object
Constructor Details
#initialize(email:, type:) ⇒ Email
Returns a new instance of Email.
8 9 10 11 |
# File 'lib/whatsapp_sdk/resource/email.rb', line 8 def initialize(email:, type:) @email = email @type = type end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/email.rb', line 6 def email @email end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/email.rb', line 6 def type @type end |
Instance Method Details
#to_h ⇒ Object
13 14 15 16 17 18 |
# File 'lib/whatsapp_sdk/resource/email.rb', line 13 def to_h { email: @email, type: @type } end |