Class: PayPal::SDK::Core::API::DataTypes::SimpleTypes::Date

Inherits:
Date
  • Object
show all
Defined in:
lib/paypal-sdk/core/api/data_types/simple_types.rb

Class Method Summary collapse

Class Method Details

.new(date) ⇒ Object


37
38
39
# File 'lib/paypal-sdk/core/api/data_types/simple_types.rb', line 37

def self.new(date)
  date.is_a?(::Date) ? date : Date.parse(date.to_s)
end