Class: Ipizza::Authentication
- Inherits:
-
Object
- Object
- Ipizza::Authentication
- Defined in:
- lib/ipizza/authentication.rb
Instance Attribute Summary collapse
-
#authentication_identifier ⇒ Object
Returns the value of attribute authentication_identifier.
-
#country ⇒ Object
Returns the value of attribute country.
-
#message_time ⇒ Object
Returns the value of attribute message_time.
-
#other ⇒ Object
Returns the value of attribute other.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#receiver_id ⇒ Object
Returns the value of attribute receiver_id.
-
#request_identifier ⇒ Object
Returns the value of attribute request_identifier.
-
#sender_id ⇒ Object
Returns the value of attribute sender_id.
-
#user ⇒ Object
Returns the value of attribute user.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Instance Method Summary collapse
-
#initialize(attribs = {}) ⇒ Authentication
constructor
A new instance of Authentication.
Constructor Details
#initialize(attribs = {}) ⇒ Authentication
Returns a new instance of Authentication.
6 7 8 9 10 11 12 13 |
# File 'lib/ipizza/authentication.rb', line 6 def initialize(attribs = {}) attribs.each do |key, value| if self.respond_to?("#{key.to_s}=".to_sym) v = key.to_sym == :message_time && value.is_a?(String) ? Time.parse(value) : value self.send("#{key.to_s}=".to_sym, v) end end end |
Instance Attribute Details
#authentication_identifier ⇒ Object
Returns the value of attribute authentication_identifier.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def authentication_identifier @authentication_identifier end |
#country ⇒ Object
Returns the value of attribute country.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def country @country end |
#message_time ⇒ Object
Returns the value of attribute message_time.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def @message_time end |
#other ⇒ Object
Returns the value of attribute other.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def other @other end |
#provider ⇒ Object
Returns the value of attribute provider.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def provider @provider end |
#receiver_id ⇒ Object
Returns the value of attribute receiver_id.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def receiver_id @receiver_id end |
#request_identifier ⇒ Object
Returns the value of attribute request_identifier.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def request_identifier @request_identifier end |
#sender_id ⇒ Object
Returns the value of attribute sender_id.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def sender_id @sender_id end |
#user ⇒ Object
Returns the value of attribute user.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def user @user end |
#user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def user_id @user_id end |
#user_name ⇒ Object
Returns the value of attribute user_name.
4 5 6 |
# File 'lib/ipizza/authentication.rb', line 4 def user_name @user_name end |