lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb in twilio-ruby-7.0.0.pre.rc.3 vs lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb in twilio-ruby-7.0.0
- old
+ new
@@ -23,14 +23,14 @@
##
# Initialize the ApprovalFetchList
# @param [Version] version Version that contains the resource
# @return [ApprovalFetchList] ApprovalFetchList
- def initialize(version, sid: nil)
+ def initialize(version, content_sid: nil)
super(version)
# Path Solution
- @solution = { sid: sid }
+ @solution = { content_sid: content_sid }
end
@@ -44,18 +44,18 @@
class ApprovalFetchContext < InstanceContext
##
# Initialize the ApprovalFetchContext
# @param [Version] version Version that contains the resource
- # @param [String] sid The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch.
+ # @param [String] content_sid The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch.
# @return [ApprovalFetchContext] ApprovalFetchContext
- def initialize(version, sid)
+ def initialize(version, content_sid)
super(version)
# Path Solution
- @solution = { sid: sid, }
- @uri = "/Content/#{@solution[:sid]}/ApprovalRequests"
+ @solution = { content_sid: content_sid, }
+ @uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests"
end
##
# Fetch the ApprovalFetchInstance
@@ -65,11 +65,11 @@
payload = @version.fetch('GET', @uri)
ApprovalFetchInstance.new(
@version,
payload,
- sid: @solution[:sid],
+ content_sid: @solution[:content_sid],
)
end
##
@@ -104,11 +104,11 @@
##
# Build an instance of ApprovalFetchInstance
# @param [Hash] payload Payload response from the API
# @return [ApprovalFetchInstance] ApprovalFetchInstance
def get_instance(payload)
- ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid])
+ ApprovalFetchInstance.new(@version, payload, content_sid: @solution[:content_sid])
end
##
# Provide a user friendly representation
def to_s
@@ -123,11 +123,11 @@
# @param [String] account_sid The SID of the
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ApprovalFetch
# resource.
# @param [String] sid The SID of the Call resource to fetch.
# @return [ApprovalFetchInstance] ApprovalFetchInstance
- def initialize(version, payload , sid: nil)
+ def initialize(version, payload , content_sid: nil)
super(version)
# Marshaled Properties
@properties = {
'sid' => payload['sid'],
@@ -136,19 +136,19 @@
'url' => payload['url'],
}
# Context
@instance_context = nil
- @params = { 'sid' => sid || @properties['sid'] , }
+ @params = { 'content_sid' => content_sid || @properties['content_sid'] , }
end
##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
# @return [ApprovalFetchContext] CallContext for this CallInstance
def context
unless @instance_context
- @instance_context = ApprovalFetchContext.new(@version , @params['sid'])
+ @instance_context = ApprovalFetchContext.new(@version , @params['content_sid'])
end
@instance_context
end
##