Class: Cleantalk::Request
- Inherits:
-
Object
- Object
- Cleantalk::Request
- Defined in:
- lib/cleantalk.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#all_headers ⇒ Object
Returns the value of attribute all_headers.
-
#allow_links ⇒ Object
Returns the value of attribute allow_links.
-
#auth_key ⇒ Object
Returns the value of attribute auth_key.
-
#example ⇒ Object
Returns the value of attribute example.
-
#feedback ⇒ Object
Returns the value of attribute feedback.
-
#js_on ⇒ Object
Returns the value of attribute js_on.
-
#last_error_no ⇒ Object
Returns the value of attribute last_error_no.
-
#last_error_text ⇒ Object
Returns the value of attribute last_error_text.
-
#last_error_time ⇒ Object
Returns the value of attribute last_error_time.
-
#message ⇒ Object
Returns the value of attribute message.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#post_info ⇒ Object
Returns the value of attribute post_info.
-
#response_lang ⇒ Object
Returns the value of attribute response_lang.
-
#sender_email ⇒ Object
Returns the value of attribute sender_email.
-
#sender_info ⇒ Object
Returns the value of attribute sender_info.
-
#sender_ip ⇒ Object
Returns the value of attribute sender_ip.
-
#sender_nickname ⇒ Object
Returns the value of attribute sender_nickname.
-
#stoplist_check ⇒ Object
Returns the value of attribute stoplist_check.
-
#submit_time ⇒ Object
Returns the value of attribute submit_time.
-
#tz ⇒ Object
Returns the value of attribute tz.
Instance Method Summary collapse
-
#initialize(params = nil) ⇒ Request
constructor
Fill params with constructor.
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
#agent ⇒ Object
Returns the value of attribute agent.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def agent @agent end |
#all_headers ⇒ Object
Returns the value of attribute all_headers.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def all_headers @all_headers end |
#allow_links ⇒ Object
Returns the value of attribute allow_links.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def allow_links @allow_links end |
#auth_key ⇒ Object
Returns the value of attribute auth_key.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def auth_key @auth_key end |
#example ⇒ Object
Returns the value of attribute example.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def example @example end |
#feedback ⇒ Object
Returns the value of attribute feedback.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def feedback @feedback end |
#js_on ⇒ Object
Returns the value of attribute js_on.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def js_on @js_on end |
#last_error_no ⇒ Object
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_text ⇒ Object
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_time ⇒ Object
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 |
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def @message end |
#phone ⇒ Object
Returns the value of attribute phone.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def phone @phone end |
#post_info ⇒ Object
Returns the value of attribute post_info.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def post_info @post_info end |
#response_lang ⇒ Object
Returns the value of attribute response_lang.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def response_lang @response_lang end |
#sender_email ⇒ Object
Returns the value of attribute sender_email.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def sender_email @sender_email end |
#sender_info ⇒ Object
Returns the value of attribute sender_info.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def sender_info @sender_info end |
#sender_ip ⇒ Object
Returns the value of attribute sender_ip.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def sender_ip @sender_ip end |
#sender_nickname ⇒ Object
Returns the value of attribute sender_nickname.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def sender_nickname @sender_nickname end |
#stoplist_check ⇒ Object
Returns the value of attribute stoplist_check.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def stoplist_check @stoplist_check end |
#submit_time ⇒ Object
Returns the value of attribute submit_time.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def submit_time @submit_time end |
#tz ⇒ Object
Returns the value of attribute tz.
6 7 8 |
# File 'lib/cleantalk.rb', line 6 def tz @tz end |