Class: Gratitude::Payday
- Inherits:
-
Object
- Object
- Gratitude::Payday
- Extended by:
- Connection
- Defined in:
- lib/gratitude/payday.rb
Constant Summary collapse
- PAYDAYS =
[]
Instance Attribute Summary collapse
-
#ach_fees_volume ⇒ Object
readonly
Returns the value of attribute ach_fees_volume.
-
#ach_volume ⇒ Object
readonly
Returns the value of attribute ach_volume.
-
#charge_fees_volume ⇒ Object
readonly
Returns the value of attribute charge_fees_volume.
-
#charge_volume ⇒ Object
readonly
Returns the value of attribute charge_volume.
-
#number_of_ach_credits ⇒ Object
(also: #nachs, #number_of_achs)
readonly
Returns the value of attribute number_of_ach_credits.
-
#number_of_active_users ⇒ Object
(also: #nactive, #number_active)
readonly
Returns the value of attribute number_of_active_users.
-
#number_of_charges ⇒ Object
(also: #ncharges)
readonly
Returns the value of attribute number_of_charges.
-
#number_of_failing_credit_cards ⇒ Object
(also: #ncc_failing)
readonly
Returns the value of attribute number_of_failing_credit_cards.
-
#number_of_missing_credit_cards ⇒ Object
(also: #ncc_missing)
readonly
Returns the value of attribute number_of_missing_credit_cards.
-
#number_of_participants ⇒ Object
(also: #nparticipants)
readonly
Returns the value of attribute number_of_participants.
-
#number_of_tippers ⇒ Object
(also: #ntippers)
readonly
Returns the value of attribute number_of_tippers.
-
#number_of_transfers ⇒ Object
(also: #ntransfers)
readonly
Returns the value of attribute number_of_transfers.
-
#transfer_end_time ⇒ Object
(also: #ts_end)
readonly
Returns the value of attribute transfer_end_time.
-
#transfer_start_time ⇒ Object
(also: #ts_start)
readonly
Returns the value of attribute transfer_start_time.
-
#transfer_volume ⇒ Object
readonly
Returns the value of attribute transfer_volume.
Class Method Summary collapse
-
.all ⇒ Object
Class Methods.
- .newest ⇒ Object
- .oldest ⇒ Object
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Payday
constructor
A new instance of Payday.
Methods included from Connection
Constructor Details
#initialize(options = {}) ⇒ Payday
Returns a new instance of Payday.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gratitude/payday.rb', line 31 def initialize( = {}) @ach_fees_volume = ["ach_fees_volume"] @ach_volume = ["ach_volume"] @charge_fees_volume = ["charge_fees_volume"] @charge_volume = ["charge_volume"] @number_of_ach_credits = ["nachs"] @number_of_active_users = ["nactive"] @number_of_failing_credit_cards = ["ncc_failing"] @number_of_missing_credit_cards = ["ncc_missing"] @number_of_charges = ["ncharges"] @number_of_participants = ["nparticipants"] @number_of_tippers = ["ntippers"] @number_of_transfers = ["ntransfers"] @transfer_volume = ["transfer_volume"] if ["ts_end"] @transfer_end_time = DateTime.parse(["ts_end"]) end if ["ts_start"] @transfer_start_time = DateTime.parse(["ts_start"]) end PAYDAYS << self end |
Instance Attribute Details
#ach_fees_volume ⇒ Object (readonly)
Returns the value of attribute ach_fees_volume.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def ach_fees_volume @ach_fees_volume end |
#ach_volume ⇒ Object (readonly)
Returns the value of attribute ach_volume.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def ach_volume @ach_volume end |
#charge_fees_volume ⇒ Object (readonly)
Returns the value of attribute charge_fees_volume.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def charge_fees_volume @charge_fees_volume end |
#charge_volume ⇒ Object (readonly)
Returns the value of attribute charge_volume.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def charge_volume @charge_volume end |
#number_of_ach_credits ⇒ Object (readonly) Also known as: nachs, number_of_achs
Returns the value of attribute number_of_ach_credits.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_ach_credits @number_of_ach_credits end |
#number_of_active_users ⇒ Object (readonly) Also known as: nactive, number_active
Returns the value of attribute number_of_active_users.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_active_users @number_of_active_users end |
#number_of_charges ⇒ Object (readonly) Also known as: ncharges
Returns the value of attribute number_of_charges.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_charges @number_of_charges end |
#number_of_failing_credit_cards ⇒ Object (readonly) Also known as: ncc_failing
Returns the value of attribute number_of_failing_credit_cards.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_failing_credit_cards @number_of_failing_credit_cards end |
#number_of_missing_credit_cards ⇒ Object (readonly) Also known as: ncc_missing
Returns the value of attribute number_of_missing_credit_cards.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_missing_credit_cards @number_of_missing_credit_cards end |
#number_of_participants ⇒ Object (readonly) Also known as: nparticipants
Returns the value of attribute number_of_participants.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_participants @number_of_participants end |
#number_of_tippers ⇒ Object (readonly) Also known as: ntippers
Returns the value of attribute number_of_tippers.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_tippers @number_of_tippers end |
#number_of_transfers ⇒ Object (readonly) Also known as: ntransfers
Returns the value of attribute number_of_transfers.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def number_of_transfers @number_of_transfers end |
#transfer_end_time ⇒ Object (readonly) Also known as: ts_end
Returns the value of attribute transfer_end_time.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def transfer_end_time @transfer_end_time end |
#transfer_start_time ⇒ Object (readonly) Also known as: ts_start
Returns the value of attribute transfer_start_time.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def transfer_start_time @transfer_start_time end |
#transfer_volume ⇒ Object (readonly)
Returns the value of attribute transfer_volume.
8 9 10 |
# File 'lib/gratitude/payday.rb', line 8 def transfer_volume @transfer_volume end |
Class Method Details
.all ⇒ Object
Class Methods
55 56 57 58 |
# File 'lib/gratitude/payday.rb', line 55 def self.all collect_paydays if PAYDAYS.empty? PAYDAYS end |
.newest ⇒ Object
60 61 62 |
# File 'lib/gratitude/payday.rb', line 60 def self.newest sort_by_ts_end.first end |
.oldest ⇒ Object
64 65 66 |
# File 'lib/gratitude/payday.rb', line 64 def self.oldest sort_by_ts_end.last end |