Class: RedboothRuby::Person

Inherits:
Base
  • Object
show all
Includes:
Operations::Create, Operations::Delete, Operations::Index, Operations::Show, Operations::Update
Defined in:
lib/redbooth-ruby/person.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#created_time, #session

Class Method Summary collapse

Methods included from Operations::Delete

included

Methods included from Operations::Show

included

Methods included from Operations::Update

included

Methods included from Operations::Create

included

Methods included from Operations::Index

included

Methods inherited from Base

#errors, #initialize, #parse_timestamps, #set_attributes, #valid?

Methods included from Operations::Base

included

Constructor Details

This class inherits a constructor from RedboothRuby::Base

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



9
10
11
# File 'lib/redbooth-ruby/person.rb', line 9

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/redbooth-ruby/person.rb', line 9

def id
  @id
end

#project_idObject

Returns the value of attribute project_id.



9
10
11
# File 'lib/redbooth-ruby/person.rb', line 9

def project_id
  @project_id
end

#roleObject

Returns the value of attribute role.



9
10
11
# File 'lib/redbooth-ruby/person.rb', line 9

def role
  @role
end

#updated_atObject

Returns the value of attribute updated_at.



9
10
11
# File 'lib/redbooth-ruby/person.rb', line 9

def updated_at
  @updated_at
end

#user_idObject

Returns the value of attribute user_id.



9
10
11
# File 'lib/redbooth-ruby/person.rb', line 9

def user_id
  @user_id
end

Class Method Details

.api_resource_name(method = nil) ⇒ Object

resource name overwrite this in the model if the api is not well named



19
20
21
# File 'lib/redbooth-ruby/person.rb', line 19

def self.api_resource_name(method = nil)
  'people'
end