Class: Seahorse::TimestampType
Instance Attribute Summary
Attributes inherited from Type
#as, #documentation, #header, #location, #model, #name, #required, #uri
Instance Method Summary collapse
Methods inherited from Type
#add, #complex?, #default_type, #initialize, inspect, #inspect, #pull_value, #to_hash, #to_output, #to_strong_params, #type, type, type=
Constructor Details
This class inherits a constructor from Seahorse::Type
Instance Method Details
#from_input(data, filter = true) ⇒ Object
103 104 105 |
# File 'lib/seahorse/type.rb', line 103 def from_input(data, filter = true) String === data ? Time.parse(data) : data end |