We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63129b9 commit e577eb8Copy full SHA for e577eb8
2 files changed
lib/contentstack.rb
@@ -1,9 +1,9 @@
1
require "contentstack/version"
2
+require "contentstack/client"
3
+
4
5
module Contentstack
- class Api
- def self.content
6
- "some more content"
7
- end
8
+ # The client object is initialized with a space and a key and then used
+ # for querying resources from this space.
+ # See README for details
9
end
lib/contentstack/error_messages.rb
@@ -0,0 +1,19 @@
+module ClientErrors
+ def nil_error_for(attribute)
+ "You must specify a valid #{attribute}"
+ end
+ def empty_error_for(attribute:)
+ "#{attribute.to_s} cannot be empty"
10
11
+end
12
13
+# class Client
14
+# include ClientErrors
15
+# end
16
17
+# client = Client.new
18
+# p client.nil_error_for(:access_token)
19
0 commit comments