Class: MekariSso::CompanyUpdate
- Inherits:
-
CompanyRegister
- Object
- Config
- CompanyRegister
- MekariSso::CompanyUpdate
- Defined in:
- lib/params/company_update.rb
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.
-
#company_id ⇒ Object
Returns the value of attribute company_id.
-
#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) ⇒ CompanyUpdate
constructor
A new instance of CompanyUpdate.
- #validate_required! ⇒ Object
Methods inherited from Config
Constructor Details
#initialize(options = nil) ⇒ CompanyUpdate
Returns a new instance of CompanyUpdate.
11 12 13 |
# File 'lib/params/company_update.rb', line 11 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_update.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_update.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_update.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_update.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_update.rb', line 7 def brand_name @brand_name end |
#company_id ⇒ Object
Returns the value of attribute company_id.
7 8 9 |
# File 'lib/params/company_update.rb', line 7 def company_id @company_id end |
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'lib/params/company_update.rb', line 7 def email @email end |
#industry_id ⇒ Object
Returns the value of attribute industry_id.
7 8 9 |
# File 'lib/params/company_update.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_update.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_update.rb', line 7 def main_address @main_address end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/params/company_update.rb', line 7 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
7 8 9 |
# File 'lib/params/company_update.rb', line 7 def phone @phone end |
#secondary_address ⇒ Object
Returns the value of attribute secondary_address.
7 8 9 |
# File 'lib/params/company_update.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_update.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_update.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_update.rb', line 7 def user_id @user_id end |
Instance Method Details
#available_keys ⇒ Object
15 16 17 |
# File 'lib/params/company_update.rb', line 15 def available_keys super + %i[company_id] end |
#validate_required! ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/params/company_update.rb', line 19 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 unless @company_id.present? raise ArgumentError, "Params company_id is required options" end end |