class ConvertKit::Form
Attributes
client[W]
created_at[R]
details[R]
embed[R]
id[R]
name[R]
subscriber_count[R]
updated_at[R]
Public Class Methods
new(id)
click to toggle source
# File lib/convertkit/form.rb, line 19 def initialize(id) @id = id end
Public Instance Methods
load(data, client)
click to toggle source
# File lib/convertkit/form.rb, line 7 def load(data, client) @client = client @id = data["id"] @subscriber_count = data["subscriber_count"] @name = data["name"] @details = data["details"] @embed = data["embed"] @created_at = data["created_at"] @updated_at = data["updated_at"] end
subscribe(opts)
click to toggle source
# File lib/convertkit/form.rb, line 23 def subscribe(opts) default = {email: nil, fname: nil, course_opted: true} end