Module: Snooby::About
Instance Method Summary collapse
-
#about ⇒ Object
Returns a hash containing the calling object’s about.json data.
Instance Method Details
#about ⇒ Object
Returns a hash containing the calling object’s about.json data.
4 5 6 7 |
# File 'lib/snooby/actions.rb', line 4 def about uri = URI(Paths[:"#{@kind}_about"] % @name) JSON.parse(Snooby.request(uri))['data'] end |