Class: Mws::Apis::Feeds::Transaction
- Inherits:
-
Object
- Object
- Mws::Apis::Feeds::Transaction
- Defined in:
- lib/mws/apis/feeds/transaction.rb
Defined Under Namespace
Classes: Item
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#submitted ⇒ Object
readonly
Returns the value of attribute submitted.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(submission_info, items = [], &item_builder) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(submission_info, items = [], &item_builder) ⇒ Transaction
Returns a new instance of Transaction.
7 8 9 10 11 12 13 14 |
# File 'lib/mws/apis/feeds/transaction.rb', line 7 def initialize(submission_info, items=[], &item_builder) @id = submission_info.id @type = submission_info.type @status = submission_info.status @submitted = submission_info.submitted @items = items instance_eval &item_builder unless item_builder.nil? end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/mws/apis/feeds/transaction.rb', line 5 def id @id end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
5 6 7 |
# File 'lib/mws/apis/feeds/transaction.rb', line 5 def items @items end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/mws/apis/feeds/transaction.rb', line 5 def status @status end |
#submitted ⇒ Object (readonly)
Returns the value of attribute submitted.
5 6 7 |
# File 'lib/mws/apis/feeds/transaction.rb', line 5 def submitted @submitted end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/mws/apis/feeds/transaction.rb', line 5 def type @type end |