Class: Appwrite::Models::Phone
- Inherits:
-
Object
- Object
- Appwrite::Models::Phone
- Defined in:
- lib/appwrite/models/phone.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#country_name ⇒ Object
readonly
Returns the value of attribute country_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, country_code:, country_name:) ⇒ Phone
constructor
A new instance of Phone.
- #to_map ⇒ Object
Constructor Details
#initialize(code:, country_code:, country_name:) ⇒ Phone
Returns a new instance of Phone.
10 11 12 13 14 15 16 17 18 |
# File 'lib/appwrite/models/phone.rb', line 10 def initialize( code:, country_code:, country_name: ) @code = code @country_code = country_code @country_name = country_name end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/appwrite/models/phone.rb', line 6 def code @code end |
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code.
7 8 9 |
# File 'lib/appwrite/models/phone.rb', line 7 def country_code @country_code end |
#country_name ⇒ Object (readonly)
Returns the value of attribute country_name.
8 9 10 |
# File 'lib/appwrite/models/phone.rb', line 8 def country_name @country_name end |
Class Method Details
Instance Method Details
#to_map ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/appwrite/models/phone.rb', line 28 def to_map { "code": @code, "countryCode": @country_code, "countryName": @country_name } end |