Class: ChargeBee::Result
- Inherits:
-
Object
show all
- Defined in:
- lib/chargebee/result.rb
Instance Method Summary
collapse
Constructor Details
#initialize(response) ⇒ Result
Returns a new instance of Result.
4
5
6
|
# File 'lib/chargebee/result.rb', line 4
def initialize(response)
@response = response
end
|
Instance Method Details
#addon ⇒ Object
44
45
46
|
# File 'lib/chargebee/result.rb', line 44
def addon()
get(:addon, Addon);
end
|
#address ⇒ Object
56
57
58
|
# File 'lib/chargebee/result.rb', line 56
def address()
get(:address, Address);
end
|
#card ⇒ Object
18
19
20
|
# File 'lib/chargebee/result.rb', line 18
def card()
get(:card, Card);
end
|
64
65
66
|
# File 'lib/chargebee/result.rb', line 64
def ()
get(:comment, Comment);
end
|
#coupon ⇒ Object
48
49
50
|
# File 'lib/chargebee/result.rb', line 48
def coupon()
get(:coupon, Coupon);
end
|
#coupon_code ⇒ Object
52
53
54
|
# File 'lib/chargebee/result.rb', line 52
def coupon_code()
get(:coupon_code, CouponCode);
end
|
#download ⇒ Object
68
69
70
|
# File 'lib/chargebee/result.rb', line 68
def download()
get(:download, Download);
end
|
#event ⇒ Object
60
61
62
|
# File 'lib/chargebee/result.rb', line 60
def event()
get(:event, Event);
end
|
#hosted_page ⇒ Object
31
32
33
|
# File 'lib/chargebee/result.rb', line 31
def hosted_page()
get(:hosted_page, HostedPage);
end
|
#plan ⇒ Object
40
41
42
|
# File 'lib/chargebee/result.rb', line 40
def plan()
get(:plan, Plan);
end
|
#to_s(*args) ⇒ Object
73
74
75
|
# File 'lib/chargebee/result.rb', line 73
def to_s(*args)
JSON.pretty_generate(@response)
end
|
#transaction ⇒ Object
27
28
29
|
# File 'lib/chargebee/result.rb', line 27
def transaction()
get(:transaction, Transaction);
end
|