Class: Square::Merchant

Inherits:
APIResource show all
Extended by:
APIOperations::Retrieve
Defined in:
lib/square/merchant.rb

Overview

Class Method Summary collapse

Methods included from APIOperations::Retrieve

retrieve

Methods inherited from APIResource

data_type, endpoint_base, nested_under

Class Method Details

.retrieve(merchant_id = nil) ⇒ Object


8
9
10
11
12
13
14
15
# File 'lib/square/merchant.rb', line 8

def self.retrieve(merchant_id = nil)
  response = Square.make_request(
    merchant: merchant_id
  )

  response = Square.parse_response(response)
  @data_type.new(response)
end