-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
36 lines (24 loc) · 674 Bytes
/
README
File metadata and controls
36 lines (24 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Exetel usage library
== DESCRIPTION:
You can use this library to interact with internet usage data from the Exetel
ISP (http://exetel.com.au).
You can obtain data for peak and off-peak downloads and limits as well as the
monthly progress percentage.
Usage data is repored in megabytes.
== USAGE:
exetel = Exetel.new('username', 'password')
exetel.peak_limit
=> 36000.0
exetel.peak_usage
=> 5549.24
exetel.peak_percentage
=> 15.4145555555556
exetel.offpeak_usage
=> 6098.7
# Example of monthly progress:
# (Note that we want the first day of the month to be 0% and the last day to
# *not* be 100%.)
Date.today.to_s
=> "2010-11-07"
exetel.month_percentage
=> 20.0