betterstack 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 65d5971eb409798b8a6e441b2fc117d254f0dd234016fe8261e1eebb7f80e709
4
- data.tar.gz: 2546bb4b6a26854ac460b255fec9c28227f21f0be3e0a0fd1b18648145fea5a4
3
+ metadata.gz: 11eba9a10146b6cb9a85882830284beaf100f785e07e6df6548c8150cf5c15c1
4
+ data.tar.gz: 83632b2d16be69f8c849437b4092b7a980da4ebe2902bc20d63f767ccdbf3077
5
5
  SHA512:
6
- metadata.gz: 19507ec7b6ee9f49592c7e51873a2afca80367f7c20e3d39c0ef9032ec6b8c10fd715a7a88577bcbc5b65842ea05fd9d01862b435edfdbebac49e4fb2cfcea0d
7
- data.tar.gz: e6abb2f150469ea4655776ca13f0d45cc1afee4b2c4902a8acc862c069b89c35fe64b9fb1f6c48f64aaed4115f4f4703a847894b5129a8dc435b0147eff97b85
6
+ metadata.gz: abaabcdce4cb9388bf02eb89ee52fa4de5bf3d7fb1fda481168c0ac599e33b4f6d23da43466f72ba0bad08cde3979d5d85912db5c12328fd6395c1b7d0d166e7
7
+ data.tar.gz: ca0f076c5048ab168763a02ecb29a867d01cdd304db968d96970c2089b08f76597139ee5aa08d0c444ef72dc9d142b96ead0c7aeaf60ef449f1c89bd65aeec21
data/betterstack.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "betterstack"
3
- spec.version = "1.0.0"
3
+ spec.version = "1.0.1"
4
4
  spec.authors = ["Umang Chouhan"]
5
5
  spec.email = ["umang@sundaycarwash.com"]
6
6
 
@@ -21,6 +21,22 @@ module BetterStack
21
21
  client.delete(resource_path(id))
22
22
  end
23
23
 
24
+ def sections(id, params = {})
25
+ client.get("#{resource_path(id)}/sections", params)
26
+ end
27
+
28
+ def add_section(id, section_attributes)
29
+ client.post("#{resource_path(id)}/sections", section_attributes)
30
+ end
31
+
32
+ def update_section(id, section_id, attributes)
33
+ client.patch("#{resource_path(id)}/sections/#{section_id}", attributes)
34
+ end
35
+
36
+ def remove_section(id, section_id)
37
+ client.delete("#{resource_path(id)}/sections/#{section_id}")
38
+ end
39
+
24
40
  def resources(id, params = {})
25
41
  client.get("#{resource_path(id)}/resources", params)
26
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betterstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umang Chouhan