Class: SchemaDotOrg::Organization

Inherits:
SchemaType
  • Object
show all
Defined in:
lib/schema_dot_org/organization.rb

Constant Summary

Constants inherited from SchemaType

SchemaType::ROOT_ATTR, SchemaType::UNQUALIFIED_CLASS_NAME_REGEX

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SchemaType

#to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname

Instance Attribute Details

#emailObject

Returns the value of attribute email.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def email
  @email
end

#founderObject

Returns the value of attribute founder.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def founder
  @founder
end

#founding_dateObject

Returns the value of attribute founding_date.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def founding_date
  @founding_date
end

#founding_locationObject

Returns the value of attribute founding_location.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def founding_location
  @founding_location
end

#logoObject

Returns the value of attribute logo.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def 
  @logo
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def name
  @name
end

#same_asObject

Returns the value of attribute same_as.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def same_as
  @same_as
end

#urlObject

Returns the value of attribute url.



7
8
9
# File 'lib/schema_dot_org/organization.rb', line 7

def url
  @url
end

Instance Method Details

#_to_json_structObject



25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/schema_dot_org/organization.rb', line 25

def _to_json_struct
  {
    'name' => name,
    'email' => email,
    'url' => url,
    'logo' => ,
    'founder' => founder.to_json_struct,
    'foundingDate' => founding_date.to_s,
    'foundingLocation' => founding_location.to_json_struct,
    'sameAs' => same_as
  }
end