Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] setting false value to a key in a record + freeing up key names #17

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

morcik
Copy link

@morcik morcik commented Feb 22, 2017

No description provided.

@thisredone thisredone merged commit dd3390a into Currency-One:master Feb 23, 2017
@@ -4,8 +4,6 @@

module Deepstream
class Record
attr_reader :name, :data, :version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are failing now

@@ -14,6 +12,10 @@ def initialize(client, name)
@client.send_message(TOPIC::RECORD, ACTION::CREATEORREAD, @name)
end

def get_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could have used record.data['name'] to get a value when a record's data contained a key 'name'. Right now you can't get the whole data hash at all (whether it should by always a hash, however, is a different issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants