Class: Weeblycloud::FormEntry

Inherits:
CloudResource show all
Defined in:
lib/weeblycloud/formentry.rb

Overview

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

Instance Attribute Summary

Attributes inherited from CloudResource

#properties

Instance Method Summary collapse

Methods inherited from CloudResource

#[], #get, #get_property, #to_s

Constructor Details

#initialize(user_id, site_id, form_id, form_entry_id, data = nil) ⇒ FormEntry

Returns a new instance of FormEntry.



9
10
11
12
13
14
15
16
17
# 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

Instance Method Details

#idObject

Returns the form_entry_id



20
21
22
# File 'lib/weeblycloud/formentry.rb', line 20

def id
  @form_entry_id
end