joyent-cloud-pricing 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c956c3b6d23704b5a0ff89975f65fe38c8d0e260
4
- data.tar.gz: f94a8d4de88c804634865f9b853948680407fca9
3
+ metadata.gz: 9b380b01b5301c09ce4946aed2d0d55879ea978a
4
+ data.tar.gz: 1eddbc97807b98e7e7ec1144226e47e61fef5414
5
5
  SHA512:
6
- metadata.gz: 0213e2bdaa2245eaa6f3b25ac3f730499e1a038e4eea2d19ac0847d55ab630efec5ec8cb313eb77ef4b07ec2beb5206eeff02d90c1ce5a1efc8ac494efe72964
7
- data.tar.gz: 128b92a637a4b4f943ee34c4bdc37854f1c938f262ed4807ac502cd1e23863df59799fc3048ff31a8d342c3ee1ded5b97972785d38a0123546c1dd1714b72ed9
6
+ metadata.gz: bba5bd633fa5e1d02037487c549d130bb43cf8b473c33544e623aea153e3a71fdc17ec8f0a395c31fe2efcd79fc4f5e3ee6bb3db29dceba3169120d23c5f2c62
7
+ data.tar.gz: 3ab4786f322d28b6077395eb2042a51ae079d78b88230ba5069745f0b43fe2314b49cda55208e0b58067c18cca224096201b1b05365d019c483d5f48705e8fd1
data/README.md CHANGED
@@ -146,35 +146,37 @@ ZONE COUNTS:
146
146
  Total # of zones 33
147
147
  Total # of reserved zones 27
148
148
  Total # of reserved but absent zones 1
149
- Reserve Pricing Term/Duration (years) 1
150
- .................................................................
151
149
 
152
- RESERVE UPFRONT COST:
153
- Reserve Pricing Upfront Payments $98,600.00
150
+ Resources in use: Reserved On-Demand Total
151
+ CPUs 384 118 494
152
+ RAM 828G 140G 907G
153
+ DISK 23T 5T 27T
154
154
  .................................................................
155
155
 
156
156
  MONTHLY COSTS:
157
- List of on-demand flavors by price
157
+ List of on-demand flavors by price (in excess of reserve)
158
158
  2 x g3-highcpu-32-smartos-cc $3,339.36
159
159
  2 x g3-highcpu-16-smartos $1,670.40
160
160
  2 x g3-highcpu-7-smartos $731.52
161
161
  1 x g3-standard-30-smartos $691.20
162
162
  ___________
163
- On Demand Monthly $6,432.48
164
-
165
- Zones Under Reserve Pricing $8,720.00
163
+ On demand monthly $6,432.48
164
+ Zones under reserve pricing $8,720.00
166
165
  ___________
167
166
  Total $15,152.48
168
167
  .................................................................
169
168
 
170
169
  YEARLY COSTS:
171
- Savings due to Reserved Pricing $145,522.24
172
- Savings % 34%
173
-
174
- Reserve Yearly $203,240.00
175
- On Demand Yearly $77,189.76
170
+ On demand yearly $77,189.76
171
+ Reserve prepay one time fee $98,600.00
172
+ Reserve monthly fees $104,640.00
176
173
  ___________
177
174
  Total $280,429.76
175
+
176
+ YEARLY RESERVE SAVINGS:
177
+ Savings due to reserved pricing $145,522.24
178
+ Savings % 34%
179
+ .................................................................
178
180
  ```
179
181
 
180
182
  ## Contributing
@@ -193,4 +195,4 @@ library. Use at your own risk.
193
195
 
194
196
  ## Author
195
197
 
196
- Konstantin Gredeskoul, [@kig on twitter](http://twitter.com/kig), [@kigster on github](http://github.com/kigster)
198
+ * Konstantin Gredeskoul, [@kig on twitter](http://twitter.com/kig), [@kigster on github](http://github.com/kigster)
@@ -1,14 +1,13 @@
1
1
  module Joyent::Cloud::Pricing
2
2
  class Flavor
3
3
  attr_accessor :name, :os, :cost, :ram, :cpus, :disk
4
-
5
- def initialize(name, os: os, cost: cost, ram: ram, cpus: cpus, disk: disk)
4
+ def initialize(name, options = {})
6
5
  @name = name
7
- @os = os
8
- @cost = (cost == 'N/A') ? nil : cost.to_f
9
- @cpus = cpus.to_f
10
- @disk = disk.to_i
11
- @ram = ram.to_f
6
+ @os = options[:os]
7
+ @cost = (options[:cost] == 'N/A') ? nil : options[:cost].to_f
8
+ @cpus = options[:cpus].to_f
9
+ @disk = options[:disk].to_i
10
+ @ram = options[:ram].to_f
12
11
  end
13
12
 
14
13
  def to_h
@@ -1,7 +1,7 @@
1
1
  module Joyent
2
2
  module Cloud
3
3
  module Pricing
4
- VERSION = '1.0.5'
4
+ VERSION = '1.0.6'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joyent-cloud-pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Gredeskoul