Class: Ipizza::Authentication

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_identifierObject

Returns the value of attribute authentication_identifier.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def authentication_identifier
  @authentication_identifier
end

#countryObject

Returns the value of attribute country.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def country
  @country
end

#message_timeObject

Returns the value of attribute message_time.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def message_time
  @message_time
end

#otherObject

Returns the value of attribute other.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def other
  @other
end

#providerObject

Returns the value of attribute provider.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def provider
  @provider
end

#receiver_idObject

Returns the value of attribute receiver_id.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def receiver_id
  @receiver_id
end

#request_identifierObject

Returns the value of attribute request_identifier.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def request_identifier
  @request_identifier
end

#sender_idObject

Returns the value of attribute sender_id.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def sender_id
  @sender_id
end

#userObject

Returns the value of attribute user.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def user
  @user
end

#user_idObject

Returns the value of attribute user_id.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def user_id
  @user_id
end

#user_nameObject

Returns the value of attribute user_name.



4
5
6
# File 'lib/ipizza/authentication.rb', line 4

def user_name
  @user_name
end