Module: Googletastic::Mixins::Actions::InstanceMethods
- Defined in:
- lib/googletastic/mixins/actions.rb
Instance Method Summary collapse
- #clone ⇒ Object
- #destroy ⇒ Object
- #download_url ⇒ Object
- #edit_url ⇒ Object
- #get_url ⇒ Object
- #index_url(ids = nil) ⇒ Object
- #new_record? ⇒ Boolean
- #reload(options = nil) ⇒ Object
- #save ⇒ Object
- #show_url ⇒ Object
- #update_url ⇒ Object
- #upload_url ⇒ Object
Instance Method Details
#clone ⇒ Object
77 78 79 |
# File 'lib/googletastic/mixins/actions.rb', line 77 def clone end |
#destroy ⇒ Object
73 74 75 |
# File 'lib/googletastic/mixins/actions.rb', line 73 def destroy end |
#download_url ⇒ Object
61 62 63 |
# File 'lib/googletastic/mixins/actions.rb', line 61 def download_url self.class.download_url(self.id) end |
#edit_url ⇒ Object
45 46 47 |
# File 'lib/googletastic/mixins/actions.rb', line 45 def edit_url self.class.edit_url(self.id) end |
#get_url ⇒ Object
53 54 55 |
# File 'lib/googletastic/mixins/actions.rb', line 53 def get_url self.class.get_url(self.id) end |
#index_url(ids = nil) ⇒ Object
49 50 51 |
# File 'lib/googletastic/mixins/actions.rb', line 49 def index_url(ids = nil) self.class.index_url(ids) end |
#new_record? ⇒ Boolean
84 85 86 |
# File 'lib/googletastic/mixins/actions.rb', line 84 def new_record? self.id.nil? end |
#reload(options = nil) ⇒ Object
81 82 |
# File 'lib/googletastic/mixins/actions.rb', line 81 def reload( = nil) end |
#save ⇒ Object
69 70 71 |
# File 'lib/googletastic/mixins/actions.rb', line 69 def save create_or_update end |
#show_url ⇒ Object
41 42 43 |
# File 'lib/googletastic/mixins/actions.rb', line 41 def show_url self.class.show_url(self.id) end |
#update_url ⇒ Object
57 58 59 |
# File 'lib/googletastic/mixins/actions.rb', line 57 def update_url self.class.update_url(self.id) end |
#upload_url ⇒ Object
65 66 67 |
# File 'lib/googletastic/mixins/actions.rb', line 65 def upload_url self.class.upload_url(self.id) end |