class Locomotive::Steam::EntrySubmissionService
Public Instance Methods
find(type_slug, slug)
click to toggle source
# File lib/locomotive/steam/services/entry_submission_service.rb, line 16 def find(type_slug, slug) service.find(type_slug, slug) end
submit(type_slug, attributes = {})
click to toggle source
# File lib/locomotive/steam/services/entry_submission_service.rb, line 8 def submit(type_slug, attributes = {}) type = service.get_type(type_slug) return nil if type.nil? || type.public_submission_enabled == false service.create(type, attributes) end
to_json(entry)
click to toggle source
# File lib/locomotive/steam/services/entry_submission_service.rb, line 20 def to_json(entry) entry.try(&:to_json) end