Class: SDM::ResourceCreateResponse
- Inherits:
-
Object
- Object
- SDM::ResourceCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ResourceCreateResponse reports how the Resources were created in the system.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#resource ⇒ Object
The created Resource.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, resource: nil) ⇒ ResourceCreateResponse
constructor
A new instance of ResourceCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, resource: nil) ⇒ ResourceCreateResponse
Returns a new instance of ResourceCreateResponse.
11027 11028 11029 11030 11031 11032 11033 11034 11035 |
# File 'lib/models/porcelain.rb', line 11027 def initialize( meta: nil, rate_limit: nil, resource: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @resource = resource == nil ? nil : resource end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
11021 11022 11023 |
# File 'lib/models/porcelain.rb', line 11021 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
11023 11024 11025 |
# File 'lib/models/porcelain.rb', line 11023 def rate_limit @rate_limit end |
#resource ⇒ Object
The created Resource.
11025 11026 11027 |
# File 'lib/models/porcelain.rb', line 11025 def resource @resource end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11037 11038 11039 11040 11041 11042 11043 |
# File 'lib/models/porcelain.rb', line 11037 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |