Module: Card::Set::Abstract::WqlSearch::Format

Extended by:
Card::Set::AbstractFormat
Defined in:
tmpsets/set/mod020-search/abstract/wql_search.rb

Instance Method Summary collapse

Instance Method Details

#card_content_limitObject



95
96
97
98
99
# File 'tmpsets/set/mod020-search/abstract/wql_search.rb', line 95

def card_content_limit
  card.wql_hash[:limit]
rescue
  nil
end

#default_limitObject



91
92
93
# File 'tmpsets/set/mod020-search/abstract/wql_search.rb', line 91

def default_limit
  card_content_limit || super
end

#item_view_from_queryObject



101
102
103
# File 'tmpsets/set/mod020-search/abstract/wql_search.rb', line 101

def item_view_from_query
  query_with_params.statement[:item]
end

#limitObject



109
110
111
# File 'tmpsets/set/mod020-search/abstract/wql_search.rb', line 109

def limit
  query_with_params.limit
end

#query_with_paramsObject



105
106
107
# File 'tmpsets/set/mod020-search/abstract/wql_search.rb', line 105

def query_with_params
  @query_with_params ||= card.fetch_query search_params
end