Class: Trufina::Requests::BaseRequest

Inherits:
Object
  • Object
show all
Includes:
AllowCreationFromHash
Defined in:
lib/requests.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ BaseRequest

Returns a new instance of BaseRequest.



13
14
15
16
# File 'lib/requests.rb', line 13

def initialize(hash = {})
  super # init method in AllowCreationFromHash
  autofill_from_config
end

Instance Method Details

#renderObject



18
19
20
21
22
# File 'lib/requests.rb', line 18

def render
  validate_contents
  # validate_against_schema # -- Functioning code doesn't validate, waiting for feedback from Trufina before implementing
  to_xml
end