Class: SupportOps::Calendly::Organizations
- Defined in:
- lib/support_ops_calendly/calendly/organizations.rb
Overview
Defines the module Organizations within the module SupportOps::Calendly.
Instance Attribute Summary collapse
-
#created_at ⇒ String
Timestamp of when the organization was created.
-
#kind ⇒ String
Indicates whether the organization is a single-user or multiple-user organization.
-
#name ⇒ String
The Organization name (in human-readable format).
-
#plan ⇒ String
Active subscription plan or trial plan.
-
#stage ⇒ String
Current stage of organization.
-
#updated_at ⇒ String
Timestamp of when the organization was created or updated.
-
#uri ⇒ String
Canonical resource reference.
Class Method Summary collapse
-
.current ⇒ Object
Returns basic information about your user’s current organization.
-
.get(object) ⇒ Object
Returns information about a specified Organization.
-
.get!(object) ⇒ Object
Returns information about a specified Organization.
Instance Method Summary collapse
-
#members ⇒ Array
Returns the organization memberships of an organization.
-
#uuid ⇒ String
Returns the UUID of an organization.
Methods inherited from Base
attributes, client, #client=, configure, define_attributes, #delete!, #find, #find!, #initialize, readonly_attributes, #save!, #store_original_attributes
Constructor Details
This class inherits a constructor from SupportOps::Calendly::Base
Instance Attribute Details
#created_at ⇒ String
Timestamp of when the organization was created
19 20 21 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 19 def created_at @created_at end |
#kind ⇒ String
Indicates whether the organization is a single-user or multiple-user organization
19 20 21 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 19 def kind @kind end |
#name ⇒ String
The Organization name (in human-readable format)
19 20 21 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 19 def name @name end |
#plan ⇒ String
Active subscription plan or trial plan
19 20 21 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 19 def plan @plan end |
#stage ⇒ String
Current stage of organization
19 20 21 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 19 def stage @stage end |
#updated_at ⇒ String
Timestamp of when the organization was created or updated
19 20 21 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 19 def updated_at @updated_at end |
#uri ⇒ String
Canonical resource reference
19 20 21 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 19 def uri @uri end |
Class Method Details
.current ⇒ Object
Returns basic information about your user’s current organization
79 80 81 82 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 79 def self.current user = Users.current Organizations.get!(user.current_organization.split('/').last) end |
.get(object) ⇒ Object
Returns information about a specified Organization
102 103 104 105 106 107 108 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 102 def self.get(object) if object.is_a? Organizations Organizations.new(uri: uri).find else Organizations.new(uri: object).find end end |
.get!(object) ⇒ Object
Returns information about a specified Organization
128 129 130 131 132 133 134 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 128 def self.get!(object) if object.is_a? Organizations Organizations.new(uri: uri).find! else Organizations.new(uri: object).find! end end |
Instance Method Details
#members ⇒ Array
This is inherited from Base#members
Returns the organization memberships of an organization
20 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 20 def members; end |
#uuid ⇒ String
This is inherited from Base#uuid
Returns the UUID of an organization
17 |
# File 'lib/support_ops_calendly/calendly/organizations.rb', line 17 def uuid; end |