Sha256: 755b096dcbfed67d7c97c11411dc6e5d553ab976cbde1a7e0b72e21f3714fcc5
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
module FieldView class Field < Requestable attr_accessor :id attr_accessor :name attr_accessor :boundary_id def initialize(json_object, auth_token = nil) self.id = json_object[:id] self.name = json_object[:name] self.boundary_id = json_object[:boundaryId] super(auth_token) end def boundary @boundary ||= nil if @boundary.nil? @boundary = Boundary.new(self.auth_token.execute_request!(:get, "boundaries/#{self.boundary_id}").data) end return @boundary end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fieldview-0.0.1 | lib/fieldview/field.rb |