Class: EndiciaLabelServer::Builders::UserSignUpBuilder

Inherits:
BuilderBase
  • Object
show all
Includes:
Ox
Defined in:
lib/endicia_label_server/builders/user_sign_up_builder.rb

Overview

The UserSignUpBuilder class builds Endicia XML Rate Objects.

Author:

  • Paul Trippett

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from BuilderBase

#document, #root

Instance Method Summary collapse

Methods inherited from BuilderBase

#add, #add_array, #add_hash, #to_http_post, #to_xml

Constructor Details

#initialize(opts = {}) ⇒ UserSignUpBuilder

Initializes a new RateBuilder object

Since:

  • 0.1.0


14
15
16
17
# File 'lib/endicia_label_server/builders/user_sign_up_builder.rb', line 14

def initialize(opts = {})
  super 'UserSignUpRequest', opts
  root[:TokenRequested] = 'true'
end

Instance Method Details

#post_fieldObject

Since:

  • 0.1.0


19
20
21
# File 'lib/endicia_label_server/builders/user_sign_up_builder.rb', line 19

def post_field
  'UserSignUpRequestXML'
end