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
text_node :payload_version, 'PayloadVersion', :optional => true
array_node :delivery_url_details, 'DeliveryURLDetails', :class => DeliveryURLDetail, :default_value => []

Instance Method Summary collapse

Methods included from Initializer

#initialize, #object_attributes=

Instance Method Details

#alerts_enabled?Boolean

Are alerts enabled?

Returns:

  • (Boolean)


32
33
34
# File 'lib/ebay/types/application_delivery_preferences.rb', line 32

def alerts_enabled?
  @alert_enable == 'Enable'
end

#application_enabled?Boolean

Is the application enabled to received Platform Notifications?

Returns:

  • (Boolean)


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

def application_enabled?
  @application_enable == 'Enable'
end