Class: DocusignDtr::MetaPropertyType

Inherits:
Object
  • Object
show all
Defined in:
lib/docusign_dtr/meta_property_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ MetaPropertyType

Returns a new instance of MetaPropertyType.



5
6
7
# File 'lib/docusign_dtr/meta_property_type.rb', line 5

def initialize(client:)
  @client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



3
4
5
# File 'lib/docusign_dtr/meta_property_type.rb', line 3

def client
  @client
end

Instance Method Details

#allObject



9
10
11
12
13
14
15
# File 'lib/docusign_dtr/meta_property_type.rb', line 9

def all
  @client.get('/meta/property_types')['entities'].map do |meta_attrs|
    meta = DocusignDtr::Models::MetaPropertyType.new(meta_attrs)
    meta.client = client
    meta
  end
end