Class: Cadenya::Types::AccountSpec
- Inherits:
-
Object
- Object
- Cadenya::Types::AccountSpec
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#billing_email ⇒ Object
readonly
Returns the value of attribute billing_email.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#workspaces ⇒ Object
readonly
Returns the value of attribute workspaces.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, domain: nil, billing_email: nil, workspaces: nil) ⇒ AccountSpec
constructor
A new instance of AccountSpec.
- #to_h ⇒ Object
Constructor Details
#initialize(description: nil, domain: nil, billing_email: nil, workspaces: nil) ⇒ AccountSpec
Returns a new instance of AccountSpec.
285 286 287 288 289 290 |
# File 'lib/cadenya/types.rb', line 285 def initialize(description: nil, domain: nil, billing_email: nil, workspaces: nil) @description = description @domain = domain @billing_email = billing_email @workspaces = workspaces end |
Instance Attribute Details
#billing_email ⇒ Object (readonly)
Returns the value of attribute billing_email.
283 284 285 |
# File 'lib/cadenya/types.rb', line 283 def billing_email @billing_email end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
283 284 285 |
# File 'lib/cadenya/types.rb', line 283 def description @description end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
283 284 285 |
# File 'lib/cadenya/types.rb', line 283 def domain @domain end |
#workspaces ⇒ Object (readonly)
Returns the value of attribute workspaces.
283 284 285 |
# File 'lib/cadenya/types.rb', line 283 def workspaces @workspaces end |
Class Method Details
.from_json(data) ⇒ Object
292 293 294 295 296 297 298 299 |
# File 'lib/cadenya/types.rb', line 292 def self.from_json(data) new( description: data["description"], domain: data["domain"], billing_email: data["billingEmail"], workspaces: data["workspaces"].nil? ? nil : (data["workspaces"]).map { |item| Types::Workspace.from_json(item) }, ) end |