Sha256: 8bbc61da28690e9454f6746a61469cd4d8d7bd1e93daa1ce1aea643148d26c22

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

module SyoboiCalendar
  module Resources
    class BaseResource
      # @return [Hashie::Mash]
      attr_reader :response

      # @param response [Hashie::Mash]
      def initialize(response)
        @response = response
      end

      # @return [Time]
      def updated_at
        ::Time.parse(response.LastUpdate)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
syoboi_calendar-0.6.0 lib/syoboi_calendar/resources/base_resource.rb
syoboi_calendar-0.5.1 lib/syoboi_calendar/resources/base_resource.rb
syoboi_calendar-0.5.0 lib/syoboi_calendar/resources/base_resource.rb