Sha256: 237a6dc2e66e9aba505a25df8b43f35ea7758200ed4ac90ba4eb5b4b6c4cf9ba

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

# frozen_string_literal: true

module Kobot
  # The texts used in selectors to identify the elements on KOT UI.
  class Selector
    attr_accessor :login_success_notification_text,
                  :location_area_notification_text,
                  :time_card_menu_link_text,
                  :kot_date_saturday,
                  :kot_date_sunday,
                  :kot_workday_time_off_text,
                  :logout_menu_link_text

    class << self
      def en
        selector = Selector.new
        selector.login_success_notification_text = 'Data has been obtained'
        selector.location_area_notification_text = 'Obtained location'
        selector.time_card_menu_link_text = 'Time Card'
        selector.kot_date_saturday = 'Sat'
        selector.kot_date_sunday = 'Sun'
        selector.kot_workday_time_off_text = 'time-off'
        selector.logout_menu_link_text = 'Sign out'
        selector
      end

      def ja
        selector = Selector.new
        selector.login_success_notification_text = 'データを取得しました'
        selector.location_area_notification_text = '位置情報取得済み'
        selector.time_card_menu_link_text = 'タイムカード'
        selector.kot_date_saturday = '土'
        selector.kot_date_sunday = '日'
        selector.kot_workday_time_off_text = '休日'
        selector.logout_menu_link_text = 'ログアウト'
        selector
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kobot-2.1.0 lib/kobot/selector.rb
kobot-2.0.0 lib/kobot/selector.rb
kobot-1.3.0 lib/kobot/selector.rb
kobot-1.2.5 lib/kobot/selector.rb