Class: Basecamp::Types::ProjectAccessResult
- Inherits:
-
Object
- Object
- Basecamp::Types::ProjectAccessResult
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
ProjectAccessResult
Instance Attribute Summary collapse
-
#granted ⇒ Object
Returns the value of attribute granted.
-
#revoked ⇒ Object
Returns the value of attribute revoked.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ ProjectAccessResult
constructor
A new instance of ProjectAccessResult.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ ProjectAccessResult
Returns a new instance of ProjectAccessResult.
3231 3232 3233 3234 |
# File 'lib/basecamp/generated/types.rb', line 3231 def initialize(data = {}) @granted = parse_array(data["granted"], "Person") @revoked = parse_array(data["revoked"], "Person") end |
Instance Attribute Details
#granted ⇒ Object
Returns the value of attribute granted.
3229 3230 3231 |
# File 'lib/basecamp/generated/types.rb', line 3229 def granted @granted end |
#revoked ⇒ Object
Returns the value of attribute revoked.
3229 3230 3231 |
# File 'lib/basecamp/generated/types.rb', line 3229 def revoked @revoked end |
Instance Method Details
#to_h ⇒ Object
3236 3237 3238 3239 3240 3241 |
# File 'lib/basecamp/generated/types.rb', line 3236 def to_h { "granted" => @granted, "revoked" => @revoked, }.compact end |
#to_json(*args) ⇒ Object
3243 3244 3245 |
# File 'lib/basecamp/generated/types.rb', line 3243 def to_json(*args) to_h.to_json(*args) end |