Class: Endicia::Label
- Inherits:
-
Object
- Object
- Endicia::Label
- Defined in:
- lib/endicia.rb
Instance Attribute Summary collapse
-
#cost_center ⇒ Object
Returns the value of attribute cost_center.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#final_postage ⇒ Object
Returns the value of attribute final_postage.
-
#image ⇒ Object
Returns the value of attribute image.
-
#pic ⇒ Object
Returns the value of attribute pic.
-
#postage_balance ⇒ Object
Returns the value of attribute postage_balance.
-
#postmark_date ⇒ Object
Returns the value of attribute postmark_date.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
-
#transaction_date_time ⇒ Object
Returns the value of attribute transaction_date_time.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
Instance Method Summary collapse
-
#initialize(data) ⇒ Label
constructor
A new instance of Label.
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_center ⇒ Object
Returns the value of attribute cost_center.
35 36 37 |
# File 'lib/endicia.rb', line 35 def cost_center @cost_center end |
#error_message ⇒ Object
Returns the value of attribute error_message.
35 36 37 |
# File 'lib/endicia.rb', line 35 def @error_message end |
#final_postage ⇒ Object
Returns the value of attribute final_postage.
35 36 37 |
# File 'lib/endicia.rb', line 35 def final_postage @final_postage end |
#image ⇒ Object
Returns the value of attribute image.
35 36 37 |
# File 'lib/endicia.rb', line 35 def image @image end |
#pic ⇒ Object
Returns the value of attribute pic.
35 36 37 |
# File 'lib/endicia.rb', line 35 def pic @pic end |
#postage_balance ⇒ Object
Returns the value of attribute postage_balance.
35 36 37 |
# File 'lib/endicia.rb', line 35 def postage_balance @postage_balance end |
#postmark_date ⇒ Object
Returns the value of attribute postmark_date.
35 36 37 |
# File 'lib/endicia.rb', line 35 def postmark_date @postmark_date end |
#status ⇒ Object
Returns the value of attribute status.
35 36 37 |
# File 'lib/endicia.rb', line 35 def status @status end |
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
35 36 37 |
# File 'lib/endicia.rb', line 35 def tracking_number @tracking_number end |
#transaction_date_time ⇒ Object
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_id ⇒ Object
Returns the value of attribute transaction_id.
35 36 37 |
# File 'lib/endicia.rb', line 35 def transaction_id @transaction_id end |