Module: ActAsApiClient::BaseApiMethods

Included in:
ApiClient
Defined in:
lib/act_as_api_client/base_api_methods.rb

Instance Method Summary collapse

Instance Method Details

#createObject

Raises:

  • (StandardError)


21
22
23
# File 'lib/act_as_api_client/base_api_methods.rb', line 21

def create
  raise StandardError, "Should be defined in inherited class"
end

#deleteObject

Raises:

  • (StandardError)


17
18
19
# File 'lib/act_as_api_client/base_api_methods.rb', line 17

def delete
  raise StandardError, "Should be defined in inherited class"
end

#findObject

Raises:

  • (StandardError)


5
6
7
# File 'lib/act_as_api_client/base_api_methods.rb', line 5

def find
  raise StandardError, "Should be defined in inherited class"
end

#find_byObject

Raises:

  • (StandardError)


13
14
15
# File 'lib/act_as_api_client/base_api_methods.rb', line 13

def find_by
  raise StandardError, "Should be defined in inherited class"
end

#updateObject

Raises:

  • (StandardError)


25
26
27
# File 'lib/act_as_api_client/base_api_methods.rb', line 25

def update
  raise StandardError, "Should be defined in inherited class"
end

#whereObject

Raises:

  • (StandardError)


9
10
11
# File 'lib/act_as_api_client/base_api_methods.rb', line 9

def where
  raise StandardError, "Should be defined in inherited class"
end