lib/tops_connect/community.rb in tops_connect-0.4.3.2 vs lib/tops_connect/community.rb in tops_connect-0.5.0
- old
+ new
@@ -1,6 +1,7 @@
# frozen_string_literal: true
+
module TopsConnect
class Community < Base
def community_key
data['CommunityKey']
end
@@ -26,16 +27,16 @@
def zip
data['DefaultZip']
end
def last_synced_at
- DateTime.parse data['LastSyncTime'] if data['LastSyncTime']
+ Time.parse data['LastSyncTime'] if data['LastSyncTime']
end
def modified_date
return unless data['Metadata']['ModifiedDate']
- DateTime.parse data['Metadata']['ModifiedDate']
+ Time.parse data['Metadata']['ModifiedDate']
end
alias updated_at modified_date
end
end