Class: Rdmm::Queries::ListItemsQuery

Inherits:
BaseQuery
  • Object
show all
Defined in:
lib/rdmm/queries/list_items_query.rb

Instance Method Summary collapse

Methods inherited from BaseQuery

#affiliate_id, #api_id, inherited, #initialize, property, #to_hash

Constructor Details

This class inherits a constructor from Rdmm::Queries::BaseQuery

Instance Method Details

#articleString?

Note:

One of the following values: “actress” “author” “genre” “maker” “series”

Returns:

  • (String, nil)


25
26
27
# File 'lib/rdmm/queries/list_items_query.rb', line 25

def article
  options[:article]
end

#article_idString?

Returns:

  • (String, nil)


30
31
32
# File 'lib/rdmm/queries/list_items_query.rb', line 30

def article_id
  options[:article_id]
end

#cidString?

Returns:

  • (String, nil)


35
36
37
# File 'lib/rdmm/queries/list_items_query.rb', line 35

def cid
  options[:content_id]
end

#floorString?

Returns:

  • (String, nil)


40
41
42
# File 'lib/rdmm/queries/list_items_query.rb', line 40

def floor
  options[:floor_code]
end

#gte_dateString?

Returns:

  • (String, nil)


45
46
47
48
49
# File 'lib/rdmm/queries/list_items_query.rb', line 45

def gte_date
  if options[:released_from]
    format_time(options[:released_from])
  end
end

#hitsInteger?

Returns:

  • (Integer, nil)


52
53
54
# File 'lib/rdmm/queries/list_items_query.rb', line 52

def hits
  options[:hits]
end

#keywordString?

Returns:

  • (String, nil)


57
58
59
# File 'lib/rdmm/queries/list_items_query.rb', line 57

def keyword
  options[:keyword]
end

#lte_dateString?

Returns:

  • (String, nil)


62
63
64
65
66
# File 'lib/rdmm/queries/list_items_query.rb', line 62

def lte_date
  if options[:released_to]
    format_time(options[:released_to])
  end
end

#mono_stockString?

Note:

One of the following values: “dmp” “mono” “reserve” “stock”

Returns:

  • (String, nil)


74
75
76
# File 'lib/rdmm/queries/list_items_query.rb', line 74

def mono_stock
  options[:mono_stock]
end

#offsetInteger?

Returns:

  • (Integer, nil)


79
80
81
# File 'lib/rdmm/queries/list_items_query.rb', line 79

def offset
  options[:offset]
end

#serviceString?

Returns:

  • (String, nil)


84
85
86
# File 'lib/rdmm/queries/list_items_query.rb', line 84

def service
  options[:service_code]
end

#siteString?

Note:

One of the following values: “DMM.com” “DMM.R18”

Returns:

  • (String, nil)


92
93
94
# File 'lib/rdmm/queries/list_items_query.rb', line 92

def site
  options[:site]
end

#sortString?

Note:

One of the following values: “-price” “date” “price” “rank” “review”

Returns:

  • (String, nil)


103
104
105
# File 'lib/rdmm/queries/list_items_query.rb', line 103

def sort
  options[:sort]
end