Class: PayPal::SDK::Core::API::DataTypes::Enum
- Inherits:
-
SimpleTypes::String
- Object
- String
- SimpleTypes::String
- PayPal::SDK::Core::API::DataTypes::Enum
- Defined in:
- lib/paypal-sdk/core/api/data_types/enum.rb
Class Method Summary collapse
Methods inherited from SimpleTypes::String
Class Method Details
.options ⇒ Object
7 8 9 |
# File 'lib/paypal-sdk/core/api/data_types/enum.rb', line 7 def @options ||= [] end |
.options=(options) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/paypal-sdk/core/api/data_types/enum.rb', line 11 def () if .is_a? Hash .each do |const_name, value| const_set(const_name, value) end @options = .values else @options = end end |