unstructured 0.1.1 → 0.2.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
  SHA256:
3
- metadata.gz: fa0d699cea60414f18b20141a762fd799888f9fed302932bcca79f56d2aa920d
4
- data.tar.gz: a2c500ce244f280063b70ad4842af872dfcfb76b088dd677beda3a5db56e8a6e
3
+ metadata.gz: 04e91f2dee32fa32fbfc2907d12cd0489a6e9380ea0c7a93f61f3e27fe23be2f
4
+ data.tar.gz: f94417fd4bc69180c9eff4ec6cc38d82b74111ae4275cb5b1b04f1badccc4e44
5
5
  SHA512:
6
- metadata.gz: 99a1ed5e1bca90e7dcd837aea54f5dbea074d6382fb8664f5ce1337b60a6b6fa532d5493315630ee0cb8c493265770657a20b3adba9af1b534471bc126181bd5
7
- data.tar.gz: 453c780ecab30f178847c1ef6e5c2c0e08f00bae4b7bf549b7d1c37fb1b861bd14c5208728575f0156e3cc61a4a441cfaf6ac24d1819cb6e9faa67498a4752ab
6
+ metadata.gz: e603eb1ea45a348ff0b5c3edcc4ef54e1894906a74d3359a0fc41a039448ed49a73493054ced67488e9f1f543bca54833c31ad46cbb49ba8dd424a56637b0b23
7
+ data.tar.gz: 66c72aba06d0bc640aade82cdb8b02835818a08cc57fe95b071f36573031b7184c16cfb98518c27d19d6858912fead04201f9acc52f9a5e15e6c2c971f96f92f
@@ -3,7 +3,10 @@
3
3
  require "ostruct"
4
4
  module Unstructured
5
5
  class Object
6
+ attr_reader :attributes, :raw_data
7
+
6
8
  def initialize(attributes)
9
+ @raw_data = attributes
7
10
  @attributes = OpenStruct.new(attributes)
8
11
  end
9
12
 
@@ -16,5 +19,9 @@ module Unstructured
16
19
  def respond_to_missing?(_method, _include_private = false)
17
20
  true
18
21
  end
22
+
23
+ def to_h
24
+ @raw_data
25
+ end
19
26
  end
20
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unstructured
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unstructured
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Fernando Davila