Class: Ebay::Types::ApplicationDeliveryPreferences

Inherits:
Object
  • Object
show all
Includes:
Initializer, XML::Mapping
Defined in:
lib/ebay/types/application_delivery_preferences.rb

Overview

Attributes

text_node :application_url, 'ApplicationURL', :optional => true
text_node :application_enable, 'ApplicationEnable', :optional => true
text_node :alert_email, 'AlertEmail', :optional => true
text_node :alert_enable, 'AlertEnable', :optional => true
text_node :notification_payload_type, 'NotificationPayloadType', :optional => true
text_node :device_type, 'DeviceType', :optional => true

Instance Method Summary collapse

Methods included from Initializer

#initialize, #object_attributes=

Instance Method Details

#alerts_enabled?Boolean

Are alerts enabled?

Returns:

  • (Boolean)


27
28
29
# File 'lib/ebay/types/application_delivery_preferences.rb', line 27

def alerts_enabled?
  @alert_enable == 'Enable'
end

#application_enabled?Boolean

Is the application enabled to received Platform Notifications?

Returns:

  • (Boolean)


22
23
24
# File 'lib/ebay/types/application_delivery_preferences.rb', line 22

def application_enabled?
  @application_enable == 'Enable'
end