Class: Yelp::Fusion::Responses::Transaction

Inherits:
Base
  • Object
show all
Defined in:
lib/yelp/fusion/responses/transaction.rb

Overview

Class to parse the Transaction response JSON

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#businessesObject (readonly)

Returns the value of attribute businesses.



31
32
33
# File 'lib/yelp/fusion/responses/transaction.rb', line 31

def businesses
  @businesses
end

#totalObject (readonly)

Returns the value of attribute total.



31
32
33
# File 'lib/yelp/fusion/responses/transaction.rb', line 31

def total
  @total
end