Class: StrawberryAPI::AccessRight

Inherits:
Object
  • Object
show all
Defined in:
lib/strawberry_api/access_right.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ AccessRight

Returns a new instance of AccessRight



9
10
11
12
13
14
15
# File 'lib/strawberry_api/access_right.rb', line 9

def initialize(params = {})
  self.user_id = params.first

  params.last.each do |k, v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end

Instance Attribute Details

#readObject

Returns the value of attribute read



6
7
8
# File 'lib/strawberry_api/access_right.rb', line 6

def read
  @read
end

#team_idObject

Returns the value of attribute team_id



5
6
7
# File 'lib/strawberry_api/access_right.rb', line 5

def team_id
  @team_id
end

#writeObject

Returns the value of attribute write



7
8
9
# File 'lib/strawberry_api/access_right.rb', line 7

def write
  @write
end