Class: StrapiRuby::Endpoint::Query
- Inherits:
-
Object
- Object
- StrapiRuby::Endpoint::Query
- Includes:
- StrapiParameters
- Defined in:
- lib/strapi_ruby/endpoint/query.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ Query
constructor
A new instance of Query.
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( = {}) @result = "" = parse_query_params end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/strapi_ruby/endpoint/query.rb', line 12 def call if [:raw] @result = [:raw] else @result end end |