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.
3002 3003 3004 3005 |
# File 'lib/basecamp/generated/types.rb', line 3002 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.
3000 3001 3002 |
# File 'lib/basecamp/generated/types.rb', line 3000 def granted @granted end |
#revoked ⇒ Object
Returns the value of attribute revoked.
3000 3001 3002 |
# File 'lib/basecamp/generated/types.rb', line 3000 def revoked @revoked end |
Instance Method Details
#to_h ⇒ Object
3007 3008 3009 3010 3011 3012 |
# File 'lib/basecamp/generated/types.rb', line 3007 def to_h { "granted" => @granted, "revoked" => @revoked, }.compact end |
#to_json(*args) ⇒ Object
3014 3015 3016 |
# File 'lib/basecamp/generated/types.rb', line 3014 def to_json(*args) to_h.to_json(*args) end |