Class: Driftrock::Service::DriftrockModel::CompanyInvite

Inherits:
Object
  • Object
show all
Includes:
Driftrock::Service::DriftrockModel
Defined in:
lib/driftrock-service/driftrock_model/company_invite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#companyObject (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

#emailObject (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_userObject (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_codeObject (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