Module: Fulfillment::Resources::Venues

Extended by:
Venues
Included in:
Venues
Defined in:
lib/fulfillment/resources/venues.rb

Instance Method Summary collapse

Instance Method Details

#find(fulfillment_method, id) ⇒ Object



11
12
13
14
15
# File 'lib/fulfillment/resources/venues.rb', line 11

def find(fulfillment_method, id)
  response = Request.new("venues/#{id}", fulfillment_method: fulfillment_method).get
  return if response.body.nil? || response.body.empty?
  response.body
end

#search(fulfillment_method, params) ⇒ Object



6
7
8
9
# File 'lib/fulfillment/resources/venues.rb', line 6

def search(fulfillment_method, params)
  response = Request.new("venues", fulfillment_method: fulfillment_method, query: params).get
  response.body
end