Class: SDM::ActivityGetResponse
- Inherits:
-
Object
- Object
- SDM::ActivityGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ActivityGetResponse returns a requested Activity.
Instance Attribute Summary collapse
-
#activity ⇒ Object
The requested Activity.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(activity: nil, meta: nil, rate_limit: nil) ⇒ ActivityGetResponse
constructor
A new instance of ActivityGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(activity: nil, meta: nil, rate_limit: nil) ⇒ ActivityGetResponse
Returns a new instance of ActivityGetResponse.
1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/models/porcelain.rb', line 1713 def initialize( activity: nil, meta: nil, rate_limit: nil ) @activity = activity == nil ? nil : activity @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#activity ⇒ Object
The requested Activity.
1707 1708 1709 |
# File 'lib/models/porcelain.rb', line 1707 def activity @activity end |
#meta ⇒ Object
Reserved for future use.
1709 1710 1711 |
# File 'lib/models/porcelain.rb', line 1709 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
1711 1712 1713 |
# File 'lib/models/porcelain.rb', line 1711 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1723 1724 1725 1726 1727 1728 1729 |
# File 'lib/models/porcelain.rb', line 1723 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 |