mastodon/mastodon-api

Media.id doesn't work

nex3 opened this issue · 0 comments

nex3 commented

When I try to access the #id property of a Media object, I get the following error:

/home/nweiz/.rvm/gems/ruby-2.2.2/gems/mastodon-api-1.0.0/lib/mastodon/base.rb:45:in `block in define_attribute_method': undefined method `[]' for nil:NilClass (NoMethodError)

It looks like Media may not be initializing @attributes properly.