Class: Comment
- Inherits:
-
Flareshow::Base
- Object
- Flareshow::Base
- Comment
- Defined in:
- lib/comment.rb
Instance Method Summary collapse
-
#permalink(mobile = false) ⇒ Object
permalink to this comment.
Methods inherited from Flareshow::Base
all, api_endpoint, assimilate_resources, auth_endpoint, authenticate, #changes, commit, create, #destroy, #destroyed?, dispatch, find, first, get, #get, handle_response, http_get, #id, #initialize, list, #method_missing, #method_name, post, process_response, query, #refresh, #save, server_defined?, #set, store, #update
Constructor Details
This class inherits a constructor from Flareshow::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Flareshow::Base
Instance Method Details
#permalink(mobile = false) ⇒ Object
permalink to this comment
4 5 6 7 8 9 10 |
# File 'lib/comment.rb', line 4 def permalink(mobile=false) if mobile "http://#{Flareshow::Base.server.host}/#{Flareshow::Base.server.domain}/shareflow/mobile/post/#{reply_to}" else "http://#{Flareshow::Base.server.host}/#{Flareshow::Base.server.domain}/shareflow/p/#{reply_to}?comment_id#{id}" end end |