Class: Driftrock::Service::DriftrockModel::CompanyInvite
- Inherits:
-
Object
- Object
- Driftrock::Service::DriftrockModel::CompanyInvite
- Includes:
- Driftrock::Service::DriftrockModel
- Defined in:
- lib/driftrock-service/driftrock_model/company_invite.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#has_user ⇒ Object
readonly
Returns the value of attribute has_user.
-
#invite_code ⇒ Object
readonly
Returns the value of attribute invite_code.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ CompanyInvite
constructor
A new instance of CompanyInvite.
Methods included from Driftrock::Service::DriftrockModel
#get_from_api_method, included, #post_to_api_method, #put_to_api_method
Constructor Details
#initialize(object_hash) ⇒ CompanyInvite
Returns a new instance of CompanyInvite.
6 7 8 9 |
# File 'lib/driftrock-service/driftrock_model/company_invite.rb', line 6 def initialize(object_hash) super(object_hash) @company = Company.new(company) end |
Instance Attribute Details
#company ⇒ Object (readonly)
Returns the value of attribute company.
5 6 7 |
# File 'lib/driftrock-service/driftrock_model/company_invite.rb', line 5 def company @company end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/driftrock-service/driftrock_model/company_invite.rb', line 5 def email @email end |
#has_user ⇒ Object (readonly)
Returns the value of attribute has_user.
5 6 7 |
# File 'lib/driftrock-service/driftrock_model/company_invite.rb', line 5 def has_user @has_user end |
#invite_code ⇒ Object (readonly)
Returns the value of attribute invite_code.
5 6 7 |
# File 'lib/driftrock-service/driftrock_model/company_invite.rb', line 5 def invite_code @invite_code end |