readypulse 0.0.2 → 1.0.0

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: 5f752e26648746f97cbda877656fe901bb993129
4
- data.tar.gz: 17d9a759004014fea213b131b06c7938c431f382
3
+ metadata.gz: eb619061c6077c81358068bebdbe9c805e064ff1
4
+ data.tar.gz: e6557e3df3a2a6bd25ba84122e166d57aaca068d
5
5
  SHA512:
6
- metadata.gz: e30d09d4606433e0fa4a2069175e350c9d1ae68d413d41f13994e2acf4d97333c369b695f00049696c1a229ff4be0655e30811d3be01ab5d59a87dad64f023f8
7
- data.tar.gz: 320d7d21197b0c85f3a80b43765c4e2379cd363fefdc1f533ca03969a0c4ba018724b58a4c03d0f598e9dfe3310bad89e86f02103f02ef1c26010b6be69d2d95
6
+ metadata.gz: d78867632538928ca4161be03bcc2dffecb0188e328646d5721fa7524db645e50848559a737450d8bfcb12168eadaacb0f84ec221e8a1c6eb4bf76cc81a60319
7
+ data.tar.gz: 3cf8355d8305d3d786ca5e8b08a0bd5f7e14de388b490aa3d73d6873cca34b6c32c03cdf3e25c817d2eb0eb936c2a4ba17959977647add15cbdf9276d8fca82b
@@ -54,10 +54,13 @@ module Readypulse
54
54
  #
55
55
  # returns an Image object with ImageType objects at the root too
56
56
 
57
- attr_accessor :readypulse_content_score
58
-
57
+ attr_accessor :products, :actor, :readypulse_content_score, :external_conversation_link
58
+
59
59
  def initialize(raw_image:)
60
60
  @readypulse_content_score = raw_image[:readypulse_content_score]
61
+ @external_conversation_link = raw_image[:external_conversation_link]
62
+ @products = raw_image.fetch(:products, [])
63
+ @actor = raw_image[:actor]
61
64
 
62
65
 
63
66
  raw_image.fetch(:media, {}).fetch(:images, []).each do |raw_type|
@@ -1,3 +1,3 @@
1
1
  module Readypulse
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -4,6 +4,9 @@ module Readypulse
4
4
 
5
5
  its(:types) {is_expected.to eq(["email", "tile", "square-tile", "mobile-tile", "large", "original"])}
6
6
  its(:readypulse_content_score) {is_expected.to eq(from_client[:readypulse_content_score])}
7
+ its(:external_conversation_link) {is_expected.to eq(from_client[:external_conversation_link])}
8
+ its(:products) {is_expected.to eq(from_client[:products])}
9
+ its(:actor) {is_expected.to eq(from_client[:actor])}
7
10
 
8
11
  it 'has image_type objects' do
9
12
  expect(image["email"]).to be_an(ImageType)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readypulse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Metcalf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-02 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler