Class: Endicia::Label

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Label

Returns a new instance of Label.



46
47
48
49
50
51
# File 'lib/endicia.rb', line 46

def initialize(data)
  data.each do |k, v|
    k = "image" if k == 'Base64LabelImage'
    send(:"#{k.tableize.singularize}=", v) if !k['xmlns'] and self.respond_to? k.tableize.singularize
  end
end

Instance Attribute Details

#cost_centerObject

Returns the value of attribute cost_center.



35
36
37
# File 'lib/endicia.rb', line 35

def cost_center
  @cost_center
end

#error_messageObject

Returns the value of attribute error_message.



35
36
37
# File 'lib/endicia.rb', line 35

def error_message
  @error_message
end

#final_postageObject

Returns the value of attribute final_postage.



35
36
37
# File 'lib/endicia.rb', line 35

def final_postage
  @final_postage
end

#imageObject

Returns the value of attribute image.



35
36
37
# File 'lib/endicia.rb', line 35

def image
  @image
end

#picObject

Returns the value of attribute pic.



35
36
37
# File 'lib/endicia.rb', line 35

def pic
  @pic
end

#postage_balanceObject

Returns the value of attribute postage_balance.



35
36
37
# File 'lib/endicia.rb', line 35

def postage_balance
  @postage_balance
end

#postmark_dateObject

Returns the value of attribute postmark_date.



35
36
37
# File 'lib/endicia.rb', line 35

def postmark_date
  @postmark_date
end

#statusObject

Returns the value of attribute status.



35
36
37
# File 'lib/endicia.rb', line 35

def status
  @status
end

#tracking_numberObject

Returns the value of attribute tracking_number.



35
36
37
# File 'lib/endicia.rb', line 35

def tracking_number
  @tracking_number
end

#transaction_date_timeObject

Returns the value of attribute transaction_date_time.



35
36
37
# File 'lib/endicia.rb', line 35

def transaction_date_time
  @transaction_date_time
end

#transaction_idObject

Returns the value of attribute transaction_id.



35
36
37
# File 'lib/endicia.rb', line 35

def transaction_id
  @transaction_id
end