Class: MekariSso::CompanyRegister
- Defined in:
- lib/params/company_register.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#billing_email ⇒ Object
Returns the value of attribute billing_email.
-
#billing_name ⇒ Object
Returns the value of attribute billing_name.
-
#billing_phone ⇒ Object
Returns the value of attribute billing_phone.
-
#brand_name ⇒ Object
Returns the value of attribute brand_name.
-
#email ⇒ Object
Returns the value of attribute email.
-
#industry_id ⇒ Object
Returns the value of attribute industry_id.
-
#industry_name ⇒ Object
Returns the value of attribute industry_name.
-
#main_address ⇒ Object
Returns the value of attribute main_address.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#secondary_address ⇒ Object
Returns the value of attribute secondary_address.
-
#tax_name ⇒ Object
Returns the value of attribute tax_name.
-
#tax_number ⇒ Object
Returns the value of attribute tax_number.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes inherited from Config
#accept_language, #base_url, #client_id, #client_secret, #scope
Instance Method Summary collapse
- #available_keys ⇒ Object
-
#initialize(options = nil) ⇒ CompanyRegister
constructor
A new instance of CompanyRegister.
- #validate_required! ⇒ Object
Methods inherited from Config
Constructor Details
#initialize(options = nil) ⇒ CompanyRegister
Returns a new instance of CompanyRegister.
10 11 12 |
# File 'lib/params/company_register.rb', line 10 def initialize( = nil) apply() if end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def access_token @access_token end |
#billing_email ⇒ Object
Returns the value of attribute billing_email.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def billing_email @billing_email end |
#billing_name ⇒ Object
Returns the value of attribute billing_name.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def billing_name @billing_name end |
#billing_phone ⇒ Object
Returns the value of attribute billing_phone.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def billing_phone @billing_phone end |
#brand_name ⇒ Object
Returns the value of attribute brand_name.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def brand_name @brand_name end |
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def email @email end |
#industry_id ⇒ Object
Returns the value of attribute industry_id.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def industry_id @industry_id end |
#industry_name ⇒ Object
Returns the value of attribute industry_name.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def industry_name @industry_name end |
#main_address ⇒ Object
Returns the value of attribute main_address.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def main_address @main_address end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def phone @phone end |
#secondary_address ⇒ Object
Returns the value of attribute secondary_address.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def secondary_address @secondary_address end |
#tax_name ⇒ Object
Returns the value of attribute tax_name.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def tax_name @tax_name end |
#tax_number ⇒ Object
Returns the value of attribute tax_number.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def tax_number @tax_number end |
#user_id ⇒ Object
Returns the value of attribute user_id.
7 8 9 |
# File 'lib/params/company_register.rb', line 7 def user_id @user_id end |
Instance Method Details
#available_keys ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/params/company_register.rb', line 14 def available_keys i[ access_token name email industry_id industry_name user_id brand_name main_address secondary_address phone tax_name tax_number billing_name billing_email billing_phone ] end |
#validate_required! ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/params/company_register.rb', line 34 def validate_required! unless @name.present? raise ArgumentError, "Params name is required options" end unless @email.present? raise ArgumentError, "Params email is required options" end unless @user_id.present? raise ArgumentError, "Params user_id is required options" end end |