Class: Locomotive::Steam::APIEntrySubmissionService

Inherits:
EntrySubmissionService
  • Object
show all
Defined in:
lib/locomotive/steam/services/api_entry_submission_service.rb

Instance Method Summary collapse

Instance Method Details

#submit(type_slug, attributes = {}) ⇒ Object


8
9
10
11
12
13
14
# File 'lib/locomotive/steam/services/api_entry_submission_service.rb', line 8

def submit(type_slug, attributes = {})
  if load_content_type(type_slug)
    create_entry(attributes)
  else
    nil
  end
end