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

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 
  
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
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



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/schema_dot_org/organization.rb', line 17

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
  }
end