GetStream / stream-ruby

Ruby Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
85 stars 32 forks source link

undefined reactions #117

Closed faustoct1 closed 5 years ago

faustoct1 commented 5 years ago
STREAM = Stream::Client.new(uri.user, uri.password)
STREAM.reactions(...)
undefined method reactions for #<Stream::Client
faustoct1 commented 5 years ago

@tbarbugli any ideia how can I react?

tbarbugli commented 5 years ago

what version of the library are you using?

faustoct1 commented 5 years ago

stream-ruby (2.2.5)

tbarbugli commented 5 years ago

reactions were added later than 2.2.5; I suggest updating to the latest

faustoct1 commented 5 years ago

after updating

STREAM.reactions
 => #<Stream::ReactionsClient:0x00007fdc1847e2e8 @api_key="bhhhd4sgr3ya", @api_secret="82brtrp4kb42mwzanndpehvag7pyzqz6p2husmmd8gjxnr6z7raappk37vr5prhb", @app_id=nil, @signer=#<Stream::Signer:0x00007fdc1847e270 @key="82brtrp4kb42mwzanndpehvag7pyzqz6p2husmmd8gjxnr6z7raappk37vr5prhb">, @client_options={:api_key=>"bhhhd4sgr3ya", :api_version=>"v1.0", :location=>nil, :default_timeout=>3, :api_hostname=>"stream-io-api.com"}>