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.
2526 2527 2528 2529 |
# File 'lib/basecamp/generated/types.rb', line 2526 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.
2524 2525 2526 |
# File 'lib/basecamp/generated/types.rb', line 2524 def granted @granted end |
#revoked ⇒ Object
Returns the value of attribute revoked.
2524 2525 2526 |
# File 'lib/basecamp/generated/types.rb', line 2524 def revoked @revoked end |
Instance Method Details
#to_h ⇒ Object
2531 2532 2533 2534 2535 2536 |
# File 'lib/basecamp/generated/types.rb', line 2531 def to_h { "granted" => @granted, "revoked" => @revoked, }.compact end |
#to_json(*args) ⇒ Object
2538 2539 2540 |
# File 'lib/basecamp/generated/types.rb', line 2538 def to_json(*args) to_h.to_json(*args) end |