module HalClient::EntryPointCovenienceMethods

Public Instance Methods

delete(url, options={}) click to toggle source

Delete the resource identified at `url`.

url - The URL of the resource of interest. options - set of options to pass to `RestClient#get`

# File lib/hal_client.rb, line 366
def delete(url, options={})
  default_client.delete(url, options)
end
get(url, options={}) click to toggle source

Returns a `Representation` of the resource identified by `url`.

url - The URL of the resource of interest. options - set of options to pass to `RestClient#get`

# File lib/hal_client.rb, line 340
def get(url, options={})
  default_client.get(url, options)
end
patch(url, data, options={}) click to toggle source

Patch a `Representation` or `String` to the resource identified at `url`.

url - The URL of the resource of interest. data - a `String` or an object that responds to `#to_hal` options - set of options to pass to `RestClient#get`

# File lib/hal_client.rb, line 358
def patch(url, data, options={})
  default_client.patch(url, data, options)
end
post(url, data, options={}) click to toggle source

Post a `Representation` or `String` to the resource identified at `url`.

url - The URL of the resource of interest. data - a `String` or an object that responds to `#to_hal` options - set of options to pass to `RestClient#get`

# File lib/hal_client.rb, line 349
def post(url, data, options={})
  default_client.post(url, data, options)
end

Protected Instance Methods

default_client() click to toggle source
# File lib/hal_client.rb, line 373
def default_client
  @default_client ||= self.new
end