Sha256: d14270ec47bf4287867611508fd38e7596e6d51f20749f19ea0ad879f96031df

Contents?: true

Size: 572 Bytes

Versions: 6

Compression:

Stored size: 572 Bytes

Contents

module SyoboiCalendar
  module Queries
    class ListTitlesQuery < BaseQuery
      COMMAND = "TitleLookup"

      property :Fields
      property :TID

      # @note Override
      def Command
        COMMAND
      end

      # @return [String, nil]
      def Fields
        if options[:fields]
          format_comma_separated_values(options[:fields])
        end
      end

      # @return [String]
      def TID
        if options[:title_id]
          format_comma_separated_values(options[:title_id])
        else
          "*"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
syoboi_calendar-0.9.4 lib/syoboi_calendar/queries/list_titles_query.rb
syoboi_calendar-0.9.3 lib/syoboi_calendar/queries/list_titles_query.rb
syoboi_calendar-0.9.2 lib/syoboi_calendar/queries/list_titles_query.rb
syoboi_calendar-0.9.1 lib/syoboi_calendar/queries/list_titles_query.rb
syoboi_calendar-0.9.0 lib/syoboi_calendar/queries/list_titles_query.rb
syoboi_calendar-0.8.0 lib/syoboi_calendar/queries/list_titles_query.rb