mas-rad_core 0.0.84 → 0.0.85

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea1a8322e7390833e770a3081f0b58a9c11b690d
4
- data.tar.gz: 773b1b2276a178bc237da1693281e975ba84f170
3
+ metadata.gz: a58be5d085e412c6058a1eeabad3dd65ab20a06e
4
+ data.tar.gz: 1d72bc40d1aba2b6b6bd15844bcc7e096fac1a84
5
5
  SHA512:
6
- metadata.gz: 6eb8d9ea897bcf0ae54e4b21ce6406e6312d82555dcf3d5b2e614473ea8f8b017c6ac83e1145d903127972ca8c7dbffd09347f5e1664ff9810e6829b337b5935
7
- data.tar.gz: d46151640a6a7618fa5b2fb82ee3a87061de89129822a7e6a1161b130002434b6b6b7ab5081672e12cd93eec2cad4c1003400b76ff4bf1dcfc4f9f8797758926
6
+ metadata.gz: 8eb29c436faf7b0b7bf2f39f219e71ab7dcca12c33cb18b57cb44b9b4c555cc8c43cb8ce6a91892b96bfd53eb302115e49b60ded4f593307dc5a8acdcf471643
7
+ data.tar.gz: bfbfb9e3cdc04d8576f2f00b2e1ed6cb4c2d74efdbda3eb17ea880fae54408f2a9853c40376fd39636fe45ddedfd338b1809e8f6db7a1c0afe359d1a4eafed3a
@@ -1,6 +1,8 @@
1
1
  require 'uk_phone_numbers'
2
2
 
3
3
  class FirmResult
4
+ PERCENTAGE_FOR_TRUE = 100
5
+
4
6
  LESS_THAN_FIFTY_K_ID = 1
5
7
 
6
8
  DIRECTLY_MAPPED_FIELDS = [
@@ -53,6 +55,10 @@ class FirmResult
53
55
  @advisers.map { |adviser_data| AdviserResult.new(adviser_data) }
54
56
  end
55
57
 
58
+ def includes_advice_type?(advice_type)
59
+ public_send(advice_type) == PERCENTAGE_FOR_TRUE
60
+ end
61
+
56
62
  def types_of_advice
57
63
  TYPES_OF_ADVICE_FIELDS.select { |field| public_send(field).nonzero? }
58
64
  end
@@ -1,5 +1,5 @@
1
1
  module MAS
2
2
  module RadCore
3
- VERSION = '0.0.84'
3
+ VERSION = '0.0.85'
4
4
  end
5
5
  end