Class: Kentaa::Api::Resources::ManualDonation
- Inherits:
-
Resource
show all
- Defined in:
- lib/kentaa/api/resources/manual_donation.rb
Instance Attribute Summary
Attributes inherited from Resource
#id
Attributes inherited from Base
#config, #options
Instance Method Summary
collapse
Methods inherited from Resource
#created_at, #delete, #initialize, #load, #save, #updated_at
Methods inherited from Base
#initialize, #load, #loaded?
Instance Method Details
#action_id ⇒ Object
44
45
46
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 44
def action_id
data[:action_id]
end
|
#amount ⇒ Object
80
81
82
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 80
def amount
BigDecimal(data[:amount])
end
|
#anonymous? ⇒ Boolean
64
65
66
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 64
def anonymous?
data[:anonymous]
end
|
#countable? ⇒ Boolean
84
85
86
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 84
def countable?
data[:countable]
end
|
#currency ⇒ Object
76
77
78
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 76
def currency
data[:currency]
end
|
#email ⇒ Object
68
69
70
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 68
def email
data[:email]
end
|
#first_name ⇒ Object
48
49
50
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 48
def first_name
data[:first_name]
end
|
#infix ⇒ Object
52
53
54
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 52
def infix
data[:infix]
end
|
#last_name ⇒ Object
56
57
58
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 56
def last_name
data[:last_name]
end
|
#message ⇒ Object
72
73
74
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 72
def message
data[:message]
end
|
#name ⇒ Object
60
61
62
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 60
def name
[first_name, infix, last_name].reject { |s| s.to_s.empty? }.join(" ")
end
|
#object_key ⇒ Object
10
11
12
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 10
def object_key
"Donation_#{id}"
end
|
#project_id ⇒ Object
36
37
38
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 36
def project_id
data[:project_id]
end
|
#segment_id ⇒ Object
32
33
34
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 32
def segment_id
data[:segment_id]
end
|
#site_id ⇒ Object
28
29
30
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 28
def site_id
data[:site_id]
end
|
#target_url ⇒ Object
88
89
90
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 88
def target_url
data[:target_url]
end
|
#team_id ⇒ Object
40
41
42
|
# File 'lib/kentaa/api/resources/manual_donation.rb', line 40
def team_id
data[:team_id]
end
|