Class: PayPal::SDK::Core::API::DataTypes::SimpleTypes::String
- Inherits:
-
String
- Object
- String
- PayPal::SDK::Core::API::DataTypes::SimpleTypes::String
- Defined in:
- lib/paypal-sdk/core/api/data_types/simple_types.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(string = "") ⇒ Object
9 10 11 |
# File 'lib/paypal-sdk/core/api/data_types/simple_types.rb', line 9 def self.new(string = "") string.is_a?(::String) ? super : super(string.to_s) end |
Instance Method Details
#to_yaml_type ⇒ Object
13 14 15 |
# File 'lib/paypal-sdk/core/api/data_types/simple_types.rb', line 13 def to_yaml_type "!tag:yaml.org,2002:str" end |