bdz 0.0.5 → 0.0.6

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.
data/lib/bdz/train.rb CHANGED
@@ -17,7 +17,7 @@ module Bdz
17
17
  def as_json
18
18
  hash = {}
19
19
  self.instance_variables.each do |var|
20
- hash[var.gsub("@", "")] = self.instance_variable_get var
20
+ hash[var.to_s.gsub("@", "")] = self.instance_variable_get var
21
21
  end
22
22
  hash.to_json
23
23
  end
data/lib/bdz/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bdz
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -6,7 +6,7 @@ describe Bdz::Train do
6
6
 
7
7
  describe 'Train object methods and instance_variables' do
8
8
  it 'should have a method serialize to json that returns intance vars to json' do
9
- train.as_json.should == "{\"@id\":\"1\",\"@leaves\":\"00:00\"}"
9
+ train.as_json.should == "{\"id\":\"1\",\"leaves\":\"00:00\"}"
10
10
  end
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bdz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: