Class: Liblab::Quote::Get

Inherits:
Object
  • Object
show all
Defined in:
lib/liblab/quote/get.rb

Class Method Summary collapse

Class Method Details

.call(quote_id = "") ⇒ Object



4
5
6
7
8
9
10
# File 'lib/liblab/quote/get.rb', line 4

def self.call(quote_id="")
  if quote_id.empty?
    raise MissingRequiredArgumentError, "quote_id is required"
  end
  _path = "quote/#{quote_id}"
  ::Liblab::Client::Base.new.get(_path)
end