class Signable::List

Public Instance Methods

data() click to toggle source
# File lib/signable/list.rb, line 16
def data
  @data ||= hash[data_name].map { |attributes| data_type.new attributes }
end
limit() click to toggle source
# File lib/signable/list.rb, line 8
def limit
  hash['limit']
end
offset() click to toggle source
# File lib/signable/list.rb, line 4
def offset
  hash['offset']
end
total() click to toggle source
# File lib/signable/list.rb, line 12
def total
  hash["total_#{data_name}"]
end

Private Instance Methods

data_name() click to toggle source
# File lib/signable/list.rb, line 22
def data_name
  data_type.name.demodulize.underscore.pluralize
end