Sha256: a6f95a562d74e436af4162bc7b21c75629be6c1549d91a1f1c837e0636b6ce5f

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

require "weeblycloud/cloudresource"

module Weeblycloud

  # Represents a FormEntry resource.
  # https://cloud-developer.weebly.com/form-entry.html
  class FormEntry < CloudResource

    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

    # Returns the form_entry_id
    def id
      @form_entry_id
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
weeblycloud-1.0.0 lib/weeblycloud/formentry.rb