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.
2723 2724 2725 2726 |
# File 'lib/basecamp/generated/types.rb', line 2723 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.
2721 2722 2723 |
# File 'lib/basecamp/generated/types.rb', line 2721 def granted @granted end |
#revoked ⇒ Object
Returns the value of attribute revoked.
2721 2722 2723 |
# File 'lib/basecamp/generated/types.rb', line 2721 def revoked @revoked end |
Instance Method Details
#to_h ⇒ Object
2728 2729 2730 2731 2732 2733 |
# File 'lib/basecamp/generated/types.rb', line 2728 def to_h { "granted" => @granted, "revoked" => @revoked, }.compact end |
#to_json(*args) ⇒ Object
2735 2736 2737 |
# File 'lib/basecamp/generated/types.rb', line 2735 def to_json(*args) to_h.to_json(*args) end |