Class: VNCPostAPI::Base

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/vncpost_api/resources/base.rb

Direct Known Subclasses

Order, Tracking

Instance Method Summary collapse

Instance Method Details

#buildObject

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/vncpost_api/resources/base.rb', line 21

def build
  raise NotImplementedError, "#build is not supported"
end

#createObject



8
9
10
11
12
13
14
15
# File 'lib/vncpost_api/resources/base.rb', line 8

def create
  connection.bearer_token = UserLogin.get_bearer_token
  format_before_send_request
  super
rescue => e
  reset_attributes_format
  raise e
end

#updateObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/vncpost_api/resources/base.rb', line 17

def update
  raise NotImplementedError, "#update is not supported"
end