class GirlScout::Thread
Public Instance Methods
as_json()
click to toggle source
Calls superclass method
GirlScout::Concerns::HasAttributes#as_json
# File lib/girlscout/thread.rb, line 15 def as_json json = super json['customer'] = customer.as_json if key?('customer') json end
attachments()
click to toggle source
# File lib/girlscout/thread.rb, line 5 def attachments @attachments ||= (self['Embedded']['attachments'] || []).map do |attr| Attachment.new(attr) end end
customer()
click to toggle source
# File lib/girlscout/thread.rb, line 11 def customer @customer ||= Customer.new(self['customer'] || {}) end