class Weeblycloud::FormEntry

Represents a FormEntry resource. cloud-developer.weebly.com/form-entry.html

Public Class Methods

new(user_id, site_id, form_id, form_entry_id, data = nil) click to toggle source
Calls superclass method Weeblycloud::CloudResource::new
# File lib/weeblycloud/formentry.rb, line 9
def initialize(user_id, site_id, form_id, form_entry_id, data = nil)
  @user_id = user_id.to_i
  @site_id = site_id.to_i
  @form_id = form_id.to_i
  @form_entry_id = form_entry_id.to_i
  @endpoint = "user/#{@user_id}/site/#{@site_id}/form/#{@form_id}/entry/#{@form_entry_id}"

  super(data)
end

Public Instance Methods

id() click to toggle source

Returns the form_entry_id

# File lib/weeblycloud/formentry.rb, line 20
def id
  @form_entry_id
end