Module: Googletastic::Mixins::Actions::InstanceMethods

Defined in:
lib/googletastic/mixins/actions.rb

Instance Method Summary collapse

Instance Method Details

#cloneObject



77
78
79
# File 'lib/googletastic/mixins/actions.rb', line 77

def clone

end

#destroyObject



73
74
75
# File 'lib/googletastic/mixins/actions.rb', line 73

def destroy

end

#download_urlObject



61
62
63
# File 'lib/googletastic/mixins/actions.rb', line 61

def download_url
  self.class.download_url(self.id)
end

#edit_urlObject



45
46
47
# File 'lib/googletastic/mixins/actions.rb', line 45

def edit_url
  self.class.edit_url(self.id)
end

#get_urlObject



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

Returns:

  • (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(options = nil)
end

#saveObject



69
70
71
# File 'lib/googletastic/mixins/actions.rb', line 69

def save
  create_or_update
end

#show_urlObject



41
42
43
# File 'lib/googletastic/mixins/actions.rb', line 41

def show_url
  self.class.show_url(self.id)
end

#update_urlObject



57
58
59
# File 'lib/googletastic/mixins/actions.rb', line 57

def update_url
  self.class.update_url(self.id)
end

#upload_urlObject



65
66
67
# File 'lib/googletastic/mixins/actions.rb', line 65

def upload_url
  self.class.upload_url(self.id)
end