Module: Onfleet::Actions::QueryMetadata::ClassMethods
- Defined in:
- lib/onfleet-ruby/actions/query_metadata.rb
Instance Method Summary collapse
Instance Method Details
#query_by_metadata(metadata) ⇒ Object
5 6 7 8 9 |
# File 'lib/onfleet-ruby/actions/query_metadata.rb', line 5 def api_url = "#{self.api_url}/metadata" response = Onfleet.request(api_url, :post, ) response.map { |item| Util.constantize("#{self}").new(item) } if response.is_a? Array end |