Class: StrapiRuby::Endpoint::Query

Inherits:
Object
  • Object
show all
Includes:
StrapiParameters
Defined in:
lib/strapi_ruby/endpoint/query.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Query

Returns a new instance of Query.



6
7
8
9
10
# File 'lib/strapi_ruby/endpoint/query.rb', line 6

def initialize(options = {})
  @result = ""
  @options = options
  parse_query_params
end

Instance Method Details

#callObject



12
13
14
15
16
17
18
# File 'lib/strapi_ruby/endpoint/query.rb', line 12

def call
  if @options[:raw]
    @result = @options[:raw]
  else
    @result
  end
end