Class: StrawberryAPI::AccessRight
- Inherits:
-
Object
- Object
- StrawberryAPI::AccessRight
- Defined in:
- lib/strawberry_api/access_right.rb
Instance Attribute Summary collapse
-
#read ⇒ Object
Returns the value of attribute read.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
-
#write ⇒ Object
Returns the value of attribute write.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ AccessRight
constructor
A new instance of AccessRight.
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
#read ⇒ Object
Returns the value of attribute read
6 7 8 |
# File 'lib/strawberry_api/access_right.rb', line 6 def read @read end |
#team_id ⇒ Object
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 |
#write ⇒ Object
Returns the value of attribute write
7 8 9 |
# File 'lib/strawberry_api/access_right.rb', line 7 def write @write end |