Module: Moneybird::Traits::Service

Instance Method Summary collapse

Instance Method Details

#build(attributes) ⇒ Object



4
5
6
# File 'lib/moneybird/traits/service.rb', line 4

def build(attributes)
  resource_class.build attributes.merge(client: client)
end

#resource_path(resource) ⇒ Object



8
9
10
# File 'lib/moneybird/traits/service.rb', line 8

def resource_path(resource)
  [path, resource.path].join('')
end