Class: EndiciaLabelServer::Builders::PostageRatesBuilder

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

Overview

The PostageRatesBuilder 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 = {}) ⇒ PostageRatesBuilder

Initializes a new RateBuilder object

Since:

  • 0.1.0


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

def initialize(opts = {})
  super 'PostageRatesRequest', opts
end

Instance Method Details

#post_fieldObject

Since:

  • 0.1.0


18
19
20
# File 'lib/endicia_label_server/builders/postage_rates_builder.rb', line 18

def post_field
  'postageRatesRequestXML'
end