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