Class: Redox::Request::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/redox/request/provider.rb

Constant Summary collapse

QUERY_META =
Redox::Models::Meta.new(EventType: 'ProviderQuery', DataModel: 'Provider')

Class Method Summary collapse

Class Method Details

.query(provider, meta: Redox::Models::Meta.new) ⇒ Object



6
7
8
9
# File 'lib/redox/request/provider.rb', line 6

def self.query(provider, meta: Redox::Models::Meta.new)
  meta = QUERY_META.merge(meta)
  return Redox::Models::Model.from_response_inflected((RedoxClient.connection.request(body: Redox::Request.build_body(provider, meta))))
end