withclouds-api 0.0.0 → 0.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
  SHA1:
3
- metadata.gz: 5a5065fd50f0cf958f702e541a811883fcaf5343
4
- data.tar.gz: 8ed2b5b0a6883f48d835fd1a304ad02918cc016e
3
+ metadata.gz: 5e2cd8c641725efde0663500ef2cc1d8cad9b80d
4
+ data.tar.gz: fe71faade103a5af4b20407356fbc7de409d2565
5
5
  SHA512:
6
- metadata.gz: 91ff5e8671244b4a010f9b999336774cbd89ba0134d66daf3bc739da6b16736241ec66e4729298aacb72aa02cf15ed474b713f35b373cbcc4ab051f9182c3384
7
- data.tar.gz: 2b664d4cbadfec1bae661bca74c5fafe4dd51fea33c8fe7c7a191028b3f9dac1833fccf36fd59f6c9b5ade3c02f33ed9cf6f22e1149325c641303e27b4874b79
6
+ metadata.gz: ee6f2a41d34b67935721fb9ea9434c1b58ad04f61fbb44ce9680cfb0184da20ebdbb7ad9ae7aa0f394c42e7651c51ec91a9d719f175b07b124465ac708a3ad29
7
+ data.tar.gz: 6d24bde4174bd89b84f4d14d7486fa12e1aaafc047306de38e2114b711757ae2363f85de6e6733696f91b5cfcb9fd4e68f8309254b39a4afe3ee9e7c6248da43
@@ -0,0 +1,12 @@
1
+ class WithcloudsApi::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when 'english'
9
+ 'Hello, beginning of future.'
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,8 @@
1
1
  class WithcloudsApi
2
- def self.what?
3
- 'Beginning of future'
2
+ def self.hi(language = 'english')
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
- end
6
+ end
7
+
8
+ require 'withclouds-api/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: withclouds-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Motenko
@@ -17,6 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/withclouds-api.rb
20
+ - lib/withclouds-api/translator.rb
20
21
  homepage: http://rubygems.org/gems/withclouds-api
21
22
  licenses:
22
23
  - MIT