Class: Cleantalk::Request

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = nil) ⇒ Request

Fill params with constructor



13
14
15
16
17
18
19
# File 'lib/cleantalk.rb', line 13

def initialize(params = nil)
  unless params.nil?
    params.each do |key, value|
      instance_variable_set("@#{key}", value)
    end
  end
end

Instance Attribute Details

#agentObject

Returns the value of attribute agent.



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

def agent
  @agent
end

#all_headersObject

Returns the value of attribute all_headers.



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

def all_headers
  @all_headers
end

Returns the value of attribute allow_links.



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

def allow_links
  @allow_links
end

#auth_keyObject

Returns the value of attribute auth_key.



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

def auth_key
  @auth_key
end

#exampleObject

Returns the value of attribute example.



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

def example
  @example
end

#feedbackObject

Returns the value of attribute feedback.



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

def feedback
  @feedback
end

#js_onObject

Returns the value of attribute js_on.



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

def js_on
  @js_on
end

#last_error_noObject

Returns the value of attribute last_error_no.



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

def last_error_no
  @last_error_no
end

#last_error_textObject

Returns the value of attribute last_error_text.



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

def last_error_text
  @last_error_text
end

#last_error_timeObject

Returns the value of attribute last_error_time.



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

def last_error_time
  @last_error_time
end

#messageObject

Returns the value of attribute message.



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

def message
  @message
end

#phoneObject

Returns the value of attribute phone.



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

def phone
  @phone
end

#post_infoObject

Returns the value of attribute post_info.



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

def 
  @post_info
end

#response_langObject

Returns the value of attribute response_lang.



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

def response_lang
  @response_lang
end

#sender_emailObject

Returns the value of attribute sender_email.



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

def sender_email
  @sender_email
end

#sender_infoObject

Returns the value of attribute sender_info.



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

def sender_info
  @sender_info
end

#sender_ipObject

Returns the value of attribute sender_ip.



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

def sender_ip
  @sender_ip
end

#sender_nicknameObject

Returns the value of attribute sender_nickname.



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

def sender_nickname
  @sender_nickname
end

#stoplist_checkObject

Returns the value of attribute stoplist_check.



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

def stoplist_check
  @stoplist_check
end

#submit_timeObject

Returns the value of attribute submit_time.



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

def submit_time
  @submit_time
end

#tzObject

Returns the value of attribute tz.



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

def tz
  @tz
end