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.
2690 2691 2692 2693 |
# File 'lib/basecamp/generated/types.rb', line 2690 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.
2688 2689 2690 |
# File 'lib/basecamp/generated/types.rb', line 2688 def granted @granted end |
#revoked ⇒ Object
Returns the value of attribute revoked.
2688 2689 2690 |
# File 'lib/basecamp/generated/types.rb', line 2688 def revoked @revoked end |
Instance Method Details
#to_h ⇒ Object
2695 2696 2697 2698 2699 2700 |
# File 'lib/basecamp/generated/types.rb', line 2695 def to_h { "granted" => @granted, "revoked" => @revoked, }.compact end |
#to_json(*args) ⇒ Object
2702 2703 2704 |
# File 'lib/basecamp/generated/types.rb', line 2702 def to_json(*args) to_h.to_json(*args) end |