Class: WhatsappSdk::Resource::BusinessAccount
- Inherits:
-
Object
- Object
- WhatsappSdk::Resource::BusinessAccount
- Defined in:
- lib/whatsapp_sdk/resource/business_account.rb
Instance Attribute Summary collapse
-
#account_review_status ⇒ Object
Returns the value of attribute account_review_status.
-
#analytics ⇒ Object
Returns the value of attribute analytics.
-
#business_verification_status ⇒ Object
Returns the value of attribute business_verification_status.
-
#call_analytics ⇒ Object
Returns the value of attribute call_analytics.
-
#conversation_analytics ⇒ Object
Returns the value of attribute conversation_analytics.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#message_template_namespace ⇒ Object
Returns the value of attribute message_template_namespace.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ownership_type ⇒ Object
Returns the value of attribute ownership_type.
-
#pricing_analytics ⇒ Object
Returns the value of attribute pricing_analytics.
-
#primary_business_location ⇒ Object
Returns the value of attribute primary_business_location.
-
#timezone_id ⇒ Object
Returns the value of attribute timezone_id.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#account_review_status ⇒ Object
Returns the value of attribute account_review_status.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def account_review_status @account_review_status end |
#analytics ⇒ Object
Returns the value of attribute analytics.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def analytics @analytics end |
#business_verification_status ⇒ Object
Returns the value of attribute business_verification_status.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def business_verification_status @business_verification_status end |
#call_analytics ⇒ Object
Returns the value of attribute call_analytics.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def call_analytics @call_analytics end |
#conversation_analytics ⇒ Object
Returns the value of attribute conversation_analytics.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def conversation_analytics @conversation_analytics end |
#country ⇒ Object
Returns the value of attribute country.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def country @country end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def id @id end |
#message_template_namespace ⇒ Object
Returns the value of attribute message_template_namespace.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def name @name end |
#ownership_type ⇒ Object
Returns the value of attribute ownership_type.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def ownership_type @ownership_type end |
#pricing_analytics ⇒ Object
Returns the value of attribute pricing_analytics.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def pricing_analytics @pricing_analytics end |
#primary_business_location ⇒ Object
Returns the value of attribute primary_business_location.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def primary_business_location @primary_business_location end |
#timezone_id ⇒ Object
Returns the value of attribute timezone_id.
6 7 8 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 6 def timezone_id @timezone_id end |
Class Method Details
.from_hash(hash) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 10 def self.from_hash(hash) business_account = BusinessAccount.new business_account.id = hash["id"] business_account.name = hash["name"] business_account.timezone_id = hash["timezone_id"] business_account. = hash["message_template_namespace"] business_account.account_review_status = hash["account_review_status"] business_account.business_verification_status = hash["business_verification_status"] business_account.country = hash["country"] business_account.ownership_type = hash["ownership_type"] business_account.primary_business_location = hash["primary_business_location"] business_account.analytics = hash["analytics"] business_account.conversation_analytics = hash["conversation_analytics"] business_account.pricing_analytics = hash["pricing_analytics"] business_account.call_analytics = hash["call_analytics"] business_account end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/whatsapp_sdk/resource/business_account.rb', line 29 def ==(other) return false unless other.is_a?(WhatsappSdk::Resource::BusinessAccount) i[id name timezone_id account_review_status business_verification_status country ownership_type primary_business_location].all? do |field| send(field) == other.send(field) end end |