Module: ShipMe

Defined in:
lib/ship_me/carriers/fed_ex.rb,
lib/ship_me.rb,
lib/ship_me/template.rb,
lib/ship_me/carriers/fed_ex/types.rb,
lib/ship_me/carriers/fed_ex/element.rb

Overview

p Time.now.iso8601.sub(/:(2)$/, ”) + $1

Defined Under Namespace

Modules: FedEx Classes: Template

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.templatesObject

Returns the value of attribute templates.



11
12
13
# File 'lib/ship_me.rb', line 11

def templates
  @templates
end

Class Method Details

.template(name, klass, &blk) ⇒ Object



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

def template(name, klass, &blk)
  temp = Template.new(klass)
  temp.options_block = blk if block_given?
  @templates[name] = temp
end