Class: MiniProgram::User
- Inherits:
-
Object
- Object
- MiniProgram::User
- Defined in:
- lib/mini_program/user.rb
Instance Attribute Summary collapse
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#open_id ⇒ Object
Returns the value of attribute open_id.
-
#options ⇒ Object
Returns the value of attribute options.
-
#phone_num ⇒ Object
Returns the value of attribute phone_num.
-
#session_key ⇒ Object
Returns the value of attribute session_key.
Instance Method Summary collapse
-
#initialize(open_id: :blank_open_id, nickname: :blank_nickname, phone_num: :blank_phone_num, session_key: :blank_session_key, options: nil) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(open_id: :blank_open_id, nickname: :blank_nickname, phone_num: :blank_phone_num, session_key: :blank_session_key, options: nil) ⇒ User
Returns a new instance of User.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mini_program/user.rb', line 5 def initialize(open_id: :blank_open_id, nickname: :blank_nickname, phone_num: :blank_phone_num, session_key: :blank_session_key, options: nil) @open_id = open_id @nickname = nickname @phone_num = phone_num @session_key = session_key @options = end |
Instance Attribute Details
#nickname ⇒ Object
Returns the value of attribute nickname.
3 4 5 |
# File 'lib/mini_program/user.rb', line 3 def nickname @nickname end |
#open_id ⇒ Object
Returns the value of attribute open_id.
3 4 5 |
# File 'lib/mini_program/user.rb', line 3 def open_id @open_id end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/mini_program/user.rb', line 3 def @options end |
#phone_num ⇒ Object
Returns the value of attribute phone_num.
3 4 5 |
# File 'lib/mini_program/user.rb', line 3 def phone_num @phone_num end |
#session_key ⇒ Object
Returns the value of attribute session_key.
3 4 5 |
# File 'lib/mini_program/user.rb', line 3 def session_key @session_key end |