twilio_recordings 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twilio_recordings.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 822e03dedbf85fe3bfc9d30be868895d3f3bfe43
|
4
|
+
data.tar.gz: 83da5c098784f631c33d40bacebdecbc319d9c66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8254cd84d72bb5a7dd01b7455a98846eda2d16c84d20fd9864d81343905c809ac04a3a80c4ed379288d4a3f1157c69bd36d95ff42408ca13f55af2fb066384bd
|
7
|
+
data.tar.gz: 4cfcae2ae82857cf1bb7d62b5cd86de93830d646cdbce689d9252feea9f9d420624c87dd926db142d7606d9067c27f83ba2ef8d5e44a1d57d5501e318f99a6d1
|
data/lib/twilio_recordings.rb
CHANGED
@@ -15,10 +15,10 @@ class TwilioRecordings
|
|
15
15
|
# account_sid: The Twilio account SID, e.g. "AC12345678901234567890123456789012"
|
16
16
|
# recording_sids: An array of recording SIDs, e.g. ["RE12345678901234567890123456789012"]
|
17
17
|
# tmp_dir: The directory that the recordings will be temporarily downloaded to. (optional, default is '/tmp')
|
18
|
-
def initialize(account_sid, recording_sids,
|
18
|
+
def initialize(account_sid, recording_sids, options={})
|
19
19
|
@account_sid = account_sid
|
20
20
|
@recording_sids = recording_sids
|
21
|
-
@tmp_dir = tmp_dir
|
21
|
+
@tmp_dir = options[:tmp_dir] || File.join('','tmp')
|
22
22
|
@recording_downloads = {}
|
23
23
|
end
|
24
24
|
|