Class: Cfan122::Operation::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/cfan122/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Request

Returns a new instance of Request.



25
26
27
28
29
30
# File 'lib/cfan122/operation.rb', line 25

def initialize params = {}
  set_default
  set_base_uri province
  self.attributes = params
  set_request_params
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



23
24
25
# File 'lib/cfan122/operation.rb', line 23

def body
  @body
end

#impersonation_userObject

Returns the value of attribute impersonation_user.



23
24
25
# File 'lib/cfan122/operation.rb', line 23

def impersonation_user
  @impersonation_user
end

#responseObject

Returns the value of attribute response.



23
24
25
# File 'lib/cfan122/operation.rb', line 23

def response
  @response
end

Instance Method Details

#executeObject

Raises:

  • (NotImplemented)


36
37
38
# File 'lib/cfan122/operation.rb', line 36

def execute
  raise NotImplemented
end

#set_defaultObject



32
# File 'lib/cfan122/operation.rb', line 32

def set_default; end

#set_request_paramsObject



34
# File 'lib/cfan122/operation.rb', line 34

def set_request_params; end