Class: GetResponse::FromField

Inherits:
Object
  • Object
show all
Defined in:
lib/get_response/from_field.rb

Overview

Form field connected with account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ FromField

Returns a new instance of FromField.



9
10
11
12
13
14
# File 'lib/get_response/from_field.rb', line 9

def initialize(params)
  @id         = params["id"]
  @name       = params["name"]
  @email      = params["email"]
  @created_on = params["created_on"]
end

Instance Attribute Details

#created_onObject (readonly)

Returns the value of attribute created_on.



6
7
8
# File 'lib/get_response/from_field.rb', line 6

def created_on
  @created_on
end

#emailObject (readonly)

Returns the value of attribute email.



6
7
8
# File 'lib/get_response/from_field.rb', line 6

def email
  @email
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/get_response/from_field.rb', line 6

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/get_response/from_field.rb', line 6

def name
  @name
end