rthbound/usno-imagery

View on GitHub
lib/usno/imagery/earth/call_with_time.rb

Summary

Maintainability
A
0 mins
Test Coverage
module USNO
  module Imagery
    module Earth
      module CallWithTime
        def self.included(base)
          def call
            result true, @usno_imagery_class.new({
              view: @view,
              time: @time || Time.now
            }).call.data
          end
        end
      end
    end
  end
end