Class: Yelp::Fusion::Responses::Transaction
- Defined in:
- lib/yelp/fusion/responses/transaction.rb
Overview
Class to parse the Transaction response JSON
Instance Attribute Summary collapse
-
#businesses ⇒ Object
readonly
Returns the value of attribute businesses.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(json) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(json) ⇒ Transaction
Returns a new instance of Transaction.
32 33 34 35 |
# File 'lib/yelp/fusion/responses/transaction.rb', line 32 def initialize(json) super(json) @businesses = parse(@businesses, Models::Business) end |
Instance Attribute Details
#businesses ⇒ Object (readonly)
Returns the value of attribute businesses.
31 32 33 |
# File 'lib/yelp/fusion/responses/transaction.rb', line 31 def businesses @businesses end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
31 32 33 |
# File 'lib/yelp/fusion/responses/transaction.rb', line 31 def total @total end |